summaryrefslogtreecommitdiffstatshomepage
path: root/src/mame/drivers/hp3478a.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/mame/drivers/hp3478a.cpp')
-rw-r--r--src/mame/drivers/hp3478a.cpp9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/mame/drivers/hp3478a.cpp b/src/mame/drivers/hp3478a.cpp
index 0b60f490a15..ae76df6831a 100644
--- a/src/mame/drivers/hp3478a.cpp
+++ b/src/mame/drivers/hp3478a.cpp
@@ -110,6 +110,8 @@ T1 : data in thru isol, from analog CPU (opcodes jt1 / jnt1)
/**** HP 3478A class **/
+namespace {
+
class hp3478a_state : public driver_device
{
public:
@@ -132,6 +134,7 @@ protected:
virtual void machine_start() override;
//virtual void machine_reset() override; //not needed?
+private:
uint8_t p1read();
void p1write(uint8_t data);
void p2write(uint8_t data);
@@ -588,6 +591,9 @@ void hp3478a_state::machine_start()
m_watchdog->watchdog_enable();
+ m_p1_oldstate = 0;
+ m_p2_oldstate = 0;
+
}
/******************************************************************************
@@ -737,6 +743,9 @@ ROM_START( hp3478a )
ROM_LOAD( "calram.bin", 0, 0x100, NO_DUMP)
ROM_END
+} // Anonymous namespace
+
+
/******************************************************************************
Drivers
******************************************************************************/