void __fastcall twinhawkWriteByte(unsigned int a,unsigned char d) { if (a>=0x900000&&a<=0x90000f) { // bprintf(PRINT_NORMAL, "input byte write %x\n",a); } if (a==0x800000) { bprintf(PRINT_NORMAL, _T("sound byte write %x\n"),a); } if (a==0x800001) { tc0140_port_w(d); } if (a==0x800002) { bprintf(PRINT_NORMAL, _T("sound byte write %x\n"),a); } if (a==0x800003) { tc0140_comm_w(d); } // bprintf(PRINT_NORMAL, "unknown word byte %x %x\n",a,d); return; }
void __fastcall rastanWriteByte(unsigned int a,unsigned char d) { switch (a) { case 0x3e0001: tc0140_port_w(d); return; case 0x3e0003: tc0140_comm_w(d); return; default: bprintf(PRINT_NORMAL, _T("writebyte %x to %x\n"),a,d); } }
void __fastcall SupermanWriteByte(unsigned int a, unsigned char d) { if (a >= 0x900000 && a <= 0x900fff) { CChip_Write((a - 0x900000) / 2, d); return; } switch (a) { case 0x800001: tc0140_port_w(d); return; case 0x800003: SupermanSynchroniseZ80(0); tc0140_comm_w(d); return; } // bprintf(PRINT_NORMAL, "68000: Write Byte %06X %02X\n", a, d); return; }