(MESS) merlin.c: Added driver for Parker Bros. Merlin. [Wilbert Pol, kevtris]

This commit is contained in:
Wilbert Pol 2012-11-03 19:48:43 +00:00
parent 2bee453b15
commit fbb1b4f9bd

View File

@ -1,3 +1,9 @@
/*
Parker Bros Merlin handheld computer game
*/
#include "emu.h"
#include "cpu/tms0980/tms0980.h"
#include "sound/speaker.h"
@ -14,6 +20,8 @@ public:
, m_speaker(*this, "speaker")
{ }
virtual void machine_start();
required_device<device_t> m_speaker;
DECLARE_READ8_MEMBER(read_k);
@ -26,8 +34,7 @@ protected:
};
#define LOG 1
#define LOG 0
static INPUT_PORTS_START( merlin )
@ -167,6 +174,13 @@ WRITE16_MEMBER(merlin_state::write_r)
}
void merlin_state::machine_start()
{
save_item(NAME(m_o));
save_item(NAME(m_r));
}
static const tms0980_config merlin_tms0980_config =
{
{