static void z80_out_neo(unsigned int port, unsigned int val) { port &= 0xff; switch (port) { case 0x04: YM2610Write(0, 0, val); break; case 0x05: YM2610Write(0, 1, val); break; case 0x06: YM2610Write(0, 2, val); break; case 0x07: YM2610Write(0, 3, val); break; case 0x0c: case 0xc0: break; default: // printf("Unknown write %x to port %x\n", val, port); break; } }
void YM2610_data_port_1_B_w(int offset,int data){ YM2610Write(1,3,data); }
void YM2610_control_port_1_B_w(int offset,int data){ YM2610Write(1,2,data); }
void YM2610_data_port_0_B_w(int offset,int data) { //if(errorlog) fprintf(errorlog," =%02X\n",data); YM2610Write(0,3,data); }
void YM2610_control_port_0_B_w(int offset,int data) { //if(errorlog) fprintf(errorlog,"PC %04x: 2610 Reg B %02X",cpu_get_pc(),data); YM2610Write(0,2,data); }