diff options
author | 2012-11-13 14:19:13 +0000 | |
---|---|---|
committer | 2012-11-13 14:19:13 +0000 | |
commit | 883110313cd7c16f821d282c5127df03efba2398 (patch) | |
tree | ac886f9f82589fc34476a7b1d844d9d41c557785 /src/mess/machine/isa_ide_cd.c | |
parent | cb76501535fd521a9dd342655f47c06736e0c8ea (diff) |
i386: add debugger helper for converting virtual to physical addresses [Carl]
(MESS) isa_ide_cd: initialize ide registers
Diffstat (limited to 'src/mess/machine/isa_ide_cd.c')
-rw-r--r-- | src/mess/machine/isa_ide_cd.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/mess/machine/isa_ide_cd.c b/src/mess/machine/isa_ide_cd.c index c6a7ef37e26..4e999010b50 100644 --- a/src/mess/machine/isa_ide_cd.c +++ b/src/mess/machine/isa_ide_cd.c @@ -461,4 +461,11 @@ void isa16_ide_cd_device::device_reset() m_isa->install16_device(0x0370, 0x0377, 0, 0, read16_delegate(FUNC(isa16_ide_cd_device::atapi_status_r), this), write16_delegate(FUNC(isa16_ide_cd_device::atapi_cmd_w), this)); } m_cur_drive = 0; + m_atapi_regs[ATAPI_REG_CMDSTATUS] = 0x00; + m_atapi_regs[ATAPI_REG_ERRFEAT] = 0x01; + m_atapi_regs[ATAPI_REG_INTREASON] = 0x01; // SECTOR_COUNT + m_atapi_regs[ATAPI_REG_SAMTAG] = 0x01; // SECTOR_NUMBER + m_atapi_regs[ATAPI_REG_COUNTLOW] = 0x14; // CYLINDER_LSB + m_atapi_regs[ATAPI_REG_COUNTHIGH] = 0xeb; // CYLINDER_MSB + m_atapi_regs[ATAPI_REG_DRIVESEL] = 0xA0; // HEAD_NUMBER } |