unsigned char __fastcall scotrsht_sound_in(unsigned short port) { switch (port & 0xff) { case 0x00: case 0x01: return BurnYM2203Read(0, port & 1); } return 0; }
UINT8 __fastcall ashnojoe_sound_read_port(UINT16 p) { switch (p & 0xff) { case 0x00: return BurnYM2203Read(0, 0); case 0x01: return BurnYM2203Read(0, 1); case 0x04: *soundstatus = 0; return *soundlatch; case 0x06: return *soundstatus; } return 0; }
UINT8 __fastcall Wc90b1Read3(UINT16 a) { switch (a) { case 0xe800: { return BurnYM2203Read(0, 0); } case 0xf800: { ZetSetIRQLine(0, ZET_IRQSTATUS_NONE); return Wc90b1SoundLatch; } default: { bprintf(PRINT_NORMAL, _T("Z80 #3 Read => %04X\n"), a); } } return 0; }