summaryrefslogtreecommitdiffstatshomepage
path: root/src/devices/machine
diff options
context:
space:
mode:
author Vas Crabb <vas@vastheman.com>2016-06-08 15:48:22 +1000
committer Vas Crabb <vas@vastheman.com>2016-06-08 15:52:02 +1000
commit5ea67e8066fda5504085e2378abfa57a60eebc12 (patch)
tree13547803bb1d9c1ccd90e63829a41dc6b3cd2d3a /src/devices/machine
parentffaa7ab2f15d429e5e58ce3767503f84cb5870e9 (diff)
ds2401: support DS2400-compatibility command 0x0F to read serial no.
fl7_3121: promoted to working [Vas Crabb] * Correct DS2401 hookup on PIA 0 port C * Make serial number ROM to match our program ROM dump * Inputs could be improved * Get past the data error on empty NVRAM with book (0) and reset (R) buttons New WORKING machines added -------------------------- Flaming 7 (Red, White & Blue 7's + Hollywood Nights) [Roberto Fresca, Vas Crabb]
Diffstat (limited to 'src/devices/machine')
-rw-r--r--src/devices/machine/ds2401.cpp1
-rw-r--r--src/devices/machine/ds2401.h3
2 files changed, 3 insertions, 1 deletions
diff --git a/src/devices/machine/ds2401.cpp b/src/devices/machine/ds2401.cpp
index 7c74924404a..154deaea628 100644
--- a/src/devices/machine/ds2401.cpp
+++ b/src/devices/machine/ds2401.cpp
@@ -127,6 +127,7 @@ void ds2401_device::device_timer(emu_timer &timer, device_timer_id id, int param
switch(m_shift)
{
case COMMAND_READROM:
+ case COMMAND_READROM_COMPAT:
verboselog(1, "timer_main readrom\n");
m_bit = 0;
m_byte = 0;
diff --git a/src/devices/machine/ds2401.h b/src/devices/machine/ds2401.h
index 11c05f27a02..5f4d87131f0 100644
--- a/src/devices/machine/ds2401.h
+++ b/src/devices/machine/ds2401.h
@@ -30,7 +30,8 @@ protected:
enum {
SIZE_DATA = 8,
- COMMAND_READROM = 0x33
+ COMMAND_READROM = 0x33,
+ COMMAND_READROM_COMPAT = 0x0f
};
enum {