public int handler(int offset) {
            switch (offset) {
                case 0x000:
                case 0x700:
                    if ((cpuA_latch & SNK_NMI_ENABLE) != 0) {
                        cpu_cause_interrupt(0, Z80_NMI_INT);
                        cpuA_latch = 0;
                    } else {
                        cpuA_latch |= SNK_NMI_PENDING;
                    }
                    return 0xff;

                /* "Hard Flags" they are needed here, otherwise ikarijp/b doesn't work right */
                case 0xe00:
                case 0xe20:
                case 0xe40:
                case 0xe60:
                case 0xe80:
                case 0xea0:
                case 0xee0:
                    if (hard_flags != 0) {
                        return 0xff;
                    }
            }
            return io_ram.read(offset);
        }