     *(cycletable_CB + (idx << 4) + 0x03) = 8;
     *(cycletable_CB + (idx << 4) + 0x04) = 8;
     *(cycletable_CB + (idx << 4) + 0x05) = 8;
-    *(cycletable_CB + (idx << 4) + 0x06) = 16;
     *(cycletable_CB + (idx << 4) + 0x07) = 8;
     *(cycletable_CB + (idx << 4) + 0x08) = 8;
     *(cycletable_CB + (idx << 4) + 0x09) = 8;

    *(cycletable_CB + (idx << 4) + 0x0B) = 8;
    *(cycletable_CB + (idx << 4) + 0x0C) = 8;
    *(cycletable_CB + (idx << 4) + 0x0D) = 8;
    *(cycletable_CB + (idx << 4) + 0x0E) = 16;
    *(cycletable_CB + (idx << 4) + 0x0F) = 8;

    idx += 1;
  }

  }

  printf("warn: unhandled read from GPU register: $%04X\n", address);
  return 0xFF;
}

def gpu_write(address: uint16, value: uint8) {
