blob: b7c93f9809478bf214238c08a49a01226e10d305 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
|
// license:BSD-3-Clause
// copyright-holders:smf
#include "emu.h"
#include "pc9801_sasi.h"
#define SASI_CMD_SPECIFY 0xc2 // according to x68k_hdc.c
DEFINE_DEVICE_TYPE(PC9801_SASI, pc9801_sasi_device, "pc9801_sasi", "PC9801 SASI Controller")
pc9801_sasi_device::pc9801_sasi_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock)
: scsihd_device(mconfig, PC9801_SASI, tag, owner, clock)
{
}
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;
}
}
|