AM_RANGE(0xf000, 0xffff) AM_RAM ADDRESS_MAP_END static READ8_HANDLER( pio_0_r ) { return (offset & 2) ? z80pio_c_r(0, offset & 1) : z80pio_d_r(0, offset & 1); }
int z80pio_0_r(int offset) { return (offset&1) ? z80pio_c_r(0,(offset/2)&1) : z80pio_d_r(0,(offset/2)&1); }