summaryrefslogtreecommitdiffstatshomepage
path: root/src/mame/drivers/videopkr.cpp
diff options
context:
space:
mode:
author Robbbert <Robbbert@users.noreply.github.com>2018-04-03 20:32:32 +1000
committer Robbbert <Robbbert@users.noreply.github.com>2018-04-03 20:32:32 +1000
commit63026947dd4e1f581475a908469aa915f0b94746 (patch)
tree65561e4a4f65b2a076f570922b87c528f52e1c92 /src/mame/drivers/videopkr.cpp
parentcb498414243a3cd977d9d3c69350ed88d696c5e8 (diff)
(nw) output finder for by6803,model1,st_mp200,videopkr
Diffstat (limited to 'src/mame/drivers/videopkr.cpp')
-rw-r--r--src/mame/drivers/videopkr.cpp16
1 files changed, 10 insertions, 6 deletions
diff --git a/src/mame/drivers/videopkr.cpp b/src/mame/drivers/videopkr.cpp
index 25eeb0250a0..b64eebcd605 100644
--- a/src/mame/drivers/videopkr.cpp
+++ b/src/mame/drivers/videopkr.cpp
@@ -305,11 +305,13 @@ class videopkr_state : public driver_device
{
public:
videopkr_state(const machine_config &mconfig, device_type type, const char *tag)
- : driver_device(mconfig, type, tag),
- m_maincpu(*this, "maincpu"),
- m_soundcpu(*this, "soundcpu"),
- m_dac(*this, "dac"),
- m_gfxdecode(*this, "gfxdecode") { }
+ : driver_device(mconfig, type, tag)
+ , m_maincpu(*this, "maincpu")
+ , m_soundcpu(*this, "soundcpu")
+ , m_dac(*this, "dac")
+ , m_gfxdecode(*this, "gfxdecode")
+ , m_digits(*this, "digit%u", 0U)
+ { }
uint8_t m_data_ram[0x100];
uint8_t m_video_ram[0x0400];
@@ -379,6 +381,7 @@ public:
required_device<cpu_device> m_soundcpu;
required_device<dac_byte_interface> m_dac;
required_device<gfxdecode_device> m_gfxdecode;
+ output_finder<28> m_digits;
void babypkr(machine_config &config);
void videodad(machine_config &config);
void videopkr(machine_config &config);
@@ -433,7 +436,7 @@ void videopkr_state::count_7dig(unsigned long data, uint8_t index)
for (i = 0; i < 7; i++)
{
- output().set_digit_value(index+i, dec_7seg((strn[6 - i] | 0x10) - 0x30));
+ m_digits[index+i] = dec_7seg((strn[6 - i] | 0x10) - 0x30);
}
}
@@ -1241,6 +1244,7 @@ GFXDECODE_END
void videopkr_state::machine_start()
{
+ m_digits.resolve();
m_vp_sound_p2 = 0xff; /* default P2 latch value */
m_sound_latch = 0xff; /* default sound data latch value */
m_p24_data = 0xff;