static WRITE8_DEVICE_HANDLER( aquarium_oki_w ) { logerror("%s:Writing %04x to the OKI M6295\n",cpuexec_describe_context(device->machine),aquarium_snd_bitswap(data)); okim6295_w( device, 0, (aquarium_snd_bitswap(data)) ); }
static READ8_DEVICE_HANDLER( aquarium_oki_r ) { return (aquarium_snd_bitswap(okim6295_r(device,0)) ); }
static WRITE8_HANDLER( aquarium_oki_w ) { logerror("%s:Writing %04x to the OKI M6295\n", space->machine().describe_context(), aquarium_snd_bitswap(data)); okim6295_device *oki = space->machine().device<okim6295_device>("oki"); oki->write(*space, offset, (aquarium_snd_bitswap(data))); }
static READ8_HANDLER( aquarium_oki_r ) { okim6295_device *oki = space->machine().device<okim6295_device>("oki"); return aquarium_snd_bitswap(oki->read(*space, offset)); }
static WRITE8_HANDLER( aquarium_oki_w ) { logerror("Z80-PC:%04x Writing %04x to the OKI M6295\n",activecpu_get_previouspc(),aquarium_snd_bitswap(data)); OKIM6295_data_0_w( 0, (aquarium_snd_bitswap(data)) ); }
static READ8_HANDLER( aquarium_oki_r ) { return (aquarium_snd_bitswap(OKIM6295_status_0_r(0)) ); }