message("* vm/common_vm")
-SET(THIS_LIB_VERSION 2.24.0)
+SET(THIS_LIB_VERSION 2.24.1)
#include(cotire)
set(s_vm_common_vm_srcs
head_up_sound = new NOISE(this, emu);
head_down_sound = new NOISE(this, emu);
- scsi_host = new TOWNS_SCSI_HOST(this, emu);
-// scsi_host = new SCSI_HOST(this, emu);
+// scsi_host = new TOWNS_SCSI_HOST(this, emu);
+ scsi_host = new SCSI_HOST(this, emu);
for(int i = 0; i < 7; i++) {
scsi_hdd[i] = NULL;
FMTOWNS::TOWNS_CDROM* cdrom;
FMTOWNS::SCSI* scsi;
- FMTOWNS::TOWNS_SCSI_HOST* scsi_host;
- //SCSI_HOST* scsi_host;
+ //FMTOWNS::TOWNS_SCSI_HOST* scsi_host;
+ SCSI_HOST* scsi_host;
SCSI_HDD* scsi_hdd[8]; //
int adc_in_ch;
void TOWNS_DMAC::write_io8(uint32_t addr, uint32_t data)
{
// if((addr & 0x0f) == 0x0c) out_debug_log("WRITE REG: %08X %08X", addr, data);
- out_debug_log("WRITE REG: %04X %02X", addr, data);
+// out_debug_log("WRITE REG: %04X %02X", addr, data);
uint naddr;
switch(addr & 0x0f) {
case 0x00:
out_debug_log(_T("RESET REG(00h) to %02X"), data);
break;
+/*
case 0x02:
case 0x03:
naddr = (addr & 0x0f) - 2;
}
return;
break;
+*/
case 0x07:
dma_high_address = (data & 0xff) << 24;
return;
}
} else {
// Fallthrough.
+// if(id == SIG_UPD71071_CH1) {
+// out_debug_log(_T("DRQ from SCSI %02X %02X"), data, mask);
+// }
UPD71071::write_signal(id, data, mask);
}
}
void TOWNS_SCSI_HOST::write_signal(int id, uint32_t data, uint32_t mask)
{
+#if 0
switch(id) {
case SIG_SCSI_REQ:
{
break;
#endif
}
- return SCSI_HOST::write_signal(id, data, mask);
+#endif
+ SCSI_HOST::write_signal(id, data, mask);
}
void TOWNS_SCSI_HOST::event_callback(int event_id, int err)