public void handler(int offset, int data) {
            UBytePtr RAM = memory_region(REGION_CPU2);

            offset = 0x10000 + (((data & 7) - 2) * 0x4000);

            cpu_setbank(2, new UBytePtr(RAM, offset));
        }