summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatarGravatar Bavarese <Bavarese@users.noreply.github.com>2018-10-19 20:29:08 +0200
committerGravatarGravatar GitHub <noreply@github.com>2018-10-19 20:29:08 +0200
commitd7538a918e2e750a05e476541996538df69f9923 (patch) (github)
treeba071954649f5c872fcdd1b1364fb3345f3e69f2
parentccef19b4257bf2c35b90490cf5a7a6af92f39715 (diff)
downloadmame-d7538a918e2e750a05e476541996538df69f9923.tar.bz2
mame-d7538a918e2e750a05e476541996538df69f9923.zip
[Rainbow-100]: write fault must not be set to 1
Write fault must not be set to 1 permanently (only in case of fatal write errors).
-rw-r--r--src/mame/drivers/rainbow.cpp13
1 files changed, 6 insertions, 7 deletions
diff --git a/src/mame/drivers/rainbow.cpp b/src/mame/drivers/rainbow.cpp
index 6c370bb5707..646d84ed48d 100644
--- a/src/mame/drivers/rainbow.cpp
+++ b/src/mame/drivers/rainbow.cpp
@@ -3282,14 +3282,13 @@ MACHINE_CONFIG_START(rainbow_state::rainbow)
m_hdc->out_step_callback().set(FUNC(rainbow_state::hdc_step)); // STEP PULSE
m_hdc->out_dirin_callback().set(FUNC(rainbow_state::hdc_direction));
- m_hdc->in_wf_callback().set(FUNC(rainbow_state::hdc_write_fault)); // WRITE FAULT (set to GND if not serviced)
+ // WF + DRDY are actually wired to a routine here:
+ m_hdc->in_wf_callback().set(FUNC(rainbow_state::hdc_write_fault)); // WRITE FAULT (fatal until next reset)
+ m_hdc->in_drdy_callback().set(FUNC(rainbow_state::hdc_drive_ready)); // DRIVE_READY (VCC = ready)
- m_hdc->in_drdy_callback().set(FUNC(rainbow_state::hdc_drive_ready)); // DRIVE_READY (set to VCC if not serviced)
-
- m_hdc->in_sc_callback().set_constant(1); // SEEK COMPLETE (set to VCC if not serviced)
-
- m_hdc->in_tk000_callback().set_constant(1); // CURRENTLY NOT EVALUATED WITHIN 'WD2010'
- m_hdc->in_wf_callback().set_constant(1); // "
+ // Always set seek complete and track 00 signal (not super clean, but does not affect operation):
+ m_hdc->in_sc_callback().set_constant(1); // SEEK COMPLETE (VCC = complete)
+ m_hdc->in_tk000_callback().set_constant(1); // TRACK 00 signal (= from drive)
MCFG_HARDDISK_ADD("decharddisk1")
/// ******************************** / HARD DISK CONTROLLER ****************************************