static WRITE8_HANDLER( apple3_c0xx_w ) { switch(offset) { case 0x10: case 0x11: case 0x12: case 0x13: case 0x14: case 0x15: case 0x16: case 0x17: case 0x18: case 0x19: case 0x1A: case 0x1B: case 0x1C: case 0x1D: case 0x1E: case 0x1F: AY3600_anykey_clearstrobe_r(); break; case 0x50: case 0x51: case 0x52: case 0x53: case 0x54: case 0x55: case 0x56: case 0x57: /* graphics softswitches */ if (offset & 1) a3 |= 1 << ((offset - 0x50) / 2); else a3 &= ~(1 << ((offset - 0x50) / 2)); break; case 0xC0: case 0xC1: case 0xC2: case 0xC3: case 0xC4: case 0xC5: case 0xC6: case 0xC7: case 0xC8: case 0xC9: case 0xCA: case 0xCB: case 0xCC: case 0xCD: case 0xCE: case 0xCF: /* profile */ apple3_profile_w(offset, data); break; case 0xD0: case 0xD1: case 0xD2: case 0xD3: case 0xD4: case 0xD5: case 0xD6: case 0xD7: /* external drive stuff */ if (offset & 1) a3 |= VAR_EXTA0 << ((offset - 0xD0) / 2); else a3 &= ~(VAR_EXTA0 << ((offset - 0xD0) / 2)); apple3_update_drives(); break; case 0xDB: apple3_write_charmem(); break; case 0xE0: case 0xE1: case 0xE2: case 0xE3: case 0xE4: case 0xE5: case 0xE6: case 0xE7: case 0xE8: case 0xE9: case 0xEA: case 0xEB: case 0xEC: case 0xED: case 0xEE: case 0xEF: applefdc_w(offset, data); break; case 0xF0: case 0xF1: case 0xF2: case 0xF3: acia_6551_w(offset & 0x03, data); break; } }
void a2bus_floppy_device::write_c0nx(address_space &space, UINT8 offset, UINT8 data) { applefdc_w(m_fdc, offset, data); }