static REG8 IOINPCALL spb_i08a(UINT port) { UINT nAddress; nAddress = g_opna[0].s.addrl; if (nAddress == 0x0e) { return fmboard_getjoy(&g_opna[0]); } (void)port; return opna_readRegister(&g_opna[0], nAddress); }
static REG8 IOINPCALL opn_i18a(UINT port) { UINT addr; addr = g_opn.addr1l; if (addr == 0x0e) { return(fmboard_getjoy(&g_psg1)); } else if (addr < 0x10) { return g_opn.reg[addr]; } (void)port; return(g_opn.data1); }
static REG8 IOINPCALL opn_i18a(UINT port) { UINT addr; addr = opn.addr; if (addr == 0x0e) { return(fmboard_getjoy(&psg1)); } else if (addr < 0x10) { return(psggen_getreg(&psg1, addr)); } (void)port; return(opn.data); }
static REG8 IOINPCALL spb_i18a(UINT port) { UINT addr; addr = g_opn.addr1l; if (addr == 0x0e) { return(fmboard_getjoy(&g_psg1)); } else if (addr == 0xff) { return(1); } else { (void)port; return(g_opn.reg[addr]); } }
static REG8 IOINPCALL opn_i08a(UINT port) { UINT nAddress; nAddress = g_opna[1].s.addrl; if (nAddress == 0x0e) { return fmboard_getjoy(&g_opna[1]); } else if (nAddress < 0x10) { return opna_readRegister(&g_opna[1], nAddress); } (void)port; return g_opna[1].s.data; }
static REG8 IOINPCALL ymf_i18a(UINT port) { UINT nAddress; if (g_opna[0].s.addrh == 0) { nAddress = g_opna[0].s.addrl; if (nAddress == 0x0e) { return fmboard_getjoy(&g_opna[0]); } else if (nAddress < 0x10) { return opna_readRegister(&g_opna[0], nAddress); } else if (nAddress == 0xff) { return 1; } } (void)port; return g_opna[0].s.data; }