diff options
Diffstat (limited to 'src/devices/bus/scsi/pc9801_sasi.c')
-rw-r--r-- | src/devices/bus/scsi/pc9801_sasi.c | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/src/devices/bus/scsi/pc9801_sasi.c b/src/devices/bus/scsi/pc9801_sasi.c new file mode 100644 index 00000000000..619f9f074da --- /dev/null +++ b/src/devices/bus/scsi/pc9801_sasi.c @@ -0,0 +1,28 @@ +// license:BSD-3-Clause +// copyright-holders:smf +#include "pc9801_sasi.h" + +#define SASI_CMD_SPECIFY 0xc2 // according to x68k_hdc.c + +const device_type PC9801_SASI = &device_creator<pc9801_sasi_device>; + +pc9801_sasi_device::pc9801_sasi_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) + : scsihd_device(mconfig, PC9801_SASI, "PC-9801 SASI Controller", tag, owner, clock, "pc9801_sasi", __FILE__) +{ +} + +void pc9801_sasi_device::ExecCommand() +{ + switch(command[0]) + { + case SASI_CMD_SPECIFY: + m_phase = SCSI_PHASE_DATAOUT; + m_status_code = SCSI_STATUS_CODE_GOOD; + m_transfer_length = 10; + break; + + default: + scsihd_device::ExecCommand(); + break; + } +} |