summaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
author Robbbert <Robbbert@users.noreply.github.com>2019-05-10 00:03:52 +1000
committer Robbbert <Robbbert@users.noreply.github.com>2019-05-10 00:03:52 +1000
commitbf2eb55b19c215e972a6c4aa30faee4120022fe9 (patch)
tree71b621e702f5cfd27a108b7ada9637b0ccc65883
parent935e230cf5df4320d521b8cb72bd16d590066e7e (diff)
MT 07326: cosmicos : no display
-rw-r--r--src/mame/drivers/cosmicos.cpp14
-rw-r--r--src/mame/includes/cosmicos.h1
2 files changed, 9 insertions, 6 deletions
diff --git a/src/mame/drivers/cosmicos.cpp b/src/mame/drivers/cosmicos.cpp
index 628e0446309..c62da73d957 100644
--- a/src/mame/drivers/cosmicos.cpp
+++ b/src/mame/drivers/cosmicos.cpp
@@ -6,6 +6,10 @@
http://retro.hansotten.nl/index.php?page=1802-cosmicos
+ Press G to start, and to enable the debugger (if -debug used).
+ The video options include 8-digit LEDs, 2-digit LEDs, and CRT,
+ of which the default is the 8-digit LEDs. Unknown how to enable
+ the others.
HEX-monitor
@@ -54,7 +58,7 @@ enum
READ8_MEMBER( cosmicos_state::read )
{
- if (m_boot) offset |= 0xc0c0;
+ if (m_boot) offset |= 0xc000;
uint8_t data = 0;
@@ -76,7 +80,7 @@ READ8_MEMBER( cosmicos_state::read )
WRITE8_MEMBER( cosmicos_state::write )
{
- if (m_boot) offset |= 0xc0c0;
+ if (m_boot) offset |= 0xc000;
if (offset < 0xc000)
{
@@ -359,11 +363,9 @@ INPUT_PORTS_END
TIMER_DEVICE_CALLBACK_MEMBER(cosmicos_state::digit_tick)
{
-// commented this out because (a) m_digit isn't initialised anywhere,
-// and (b) writing to a negative digit is not a good idea.
-// m_digit = !m_digit;
+ m_digit ^= 1;
-// m_digits[m_digit] = m_segment;
+ m_digits[m_digit] = m_segment;
}
TIMER_DEVICE_CALLBACK_MEMBER(cosmicos_state::int_tick)
diff --git a/src/mame/includes/cosmicos.h b/src/mame/includes/cosmicos.h
index 48c1b28c0e5..51128234557 100644
--- a/src/mame/includes/cosmicos.h
+++ b/src/mame/includes/cosmicos.h
@@ -43,6 +43,7 @@ class cosmicos_state : public driver_device
public:
cosmicos_state(const machine_config &mconfig, device_type type, const char *tag) :
driver_device(mconfig, type, tag),
+ m_digit(0),
m_maincpu(*this, CDP1802_TAG),
m_cti(*this, CDP1864_TAG),
m_led(*this, DM9368_TAG),