summaryrefslogtreecommitdiffstatshomepage
path: root/src/mess/drivers/tutor.c
diff options
context:
space:
mode:
author Miodrag Milanovic <mmicko@gmail.com>2012-09-13 11:15:32 +0000
committer Miodrag Milanovic <mmicko@gmail.com>2012-09-13 11:15:32 +0000
commit219e664785890f52079bae7e74543920d638796a (patch)
tree774d1ab1e7d87ae4d2c1ef335dcef24a28a7d7e8 /src/mess/drivers/tutor.c
parentaf9a5e817d3eefdda79e801056b29167ecbcdef9 (diff)
Massive change, MACHINE_START\RESET, VIDEO_START\RESET and PALETTE_INIT changed to be members of state classes (no whatsnew)
Diffstat (limited to 'src/mess/drivers/tutor.c')
-rw-r--r--src/mess/drivers/tutor.c17
1 files changed, 8 insertions, 9 deletions
diff --git a/src/mess/drivers/tutor.c b/src/mess/drivers/tutor.c
index 331f02a45d1..b4239dafc27 100644
--- a/src/mess/drivers/tutor.c
+++ b/src/mess/drivers/tutor.c
@@ -204,6 +204,8 @@ public:
char m_printer_strobe;
DECLARE_DRIVER_INIT(tutor);
DECLARE_DRIVER_INIT(pyuuta);
+ virtual void machine_start();
+ virtual void machine_reset();
};
@@ -246,19 +248,18 @@ static TMS9928A_INTERFACE(tutor_tms9928a_interface)
DEVCB_NULL
};
-static MACHINE_START(tutor)
+void tutor_state::machine_start()
{
}
-static MACHINE_RESET(tutor)
+void tutor_state::machine_reset()
{
- tutor_state *state = machine.driver_data<tutor_state>();
- state->m_cartridge_enable = 0;
+ m_cartridge_enable = 0;
- state->m_tape_interrupt_enable = 0;
+ m_tape_interrupt_enable = 0;
- state->m_printer_data = 0;
- state->m_printer_strobe = 0;
+ m_printer_data = 0;
+ m_printer_strobe = 0;
}
/*
@@ -759,8 +760,6 @@ static MACHINE_CONFIG_START( tutor, tutor_state )
MCFG_CPU_PROGRAM_MAP(tutor_memmap)
MCFG_CPU_IO_MAP(tutor_io)
- MCFG_MACHINE_START( tutor )
- MCFG_MACHINE_RESET( tutor )
/* video hardware */
MCFG_TMS9928A_ADD( "tms9928a", TMS9928A, tutor_tms9928a_interface )