mirror of
https://github.com/holub/mame
synced 2025-10-06 17:08:28 +03:00
(MESS) merlin.c: Added driver for Parker Bros. Merlin. [Wilbert Pol, kevtris]
This commit is contained in:
parent
2bee453b15
commit
fbb1b4f9bd
@ -1,3 +1,9 @@
|
|||||||
|
/*
|
||||||
|
|
||||||
|
Parker Bros Merlin handheld computer game
|
||||||
|
|
||||||
|
*/
|
||||||
|
|
||||||
#include "emu.h"
|
#include "emu.h"
|
||||||
#include "cpu/tms0980/tms0980.h"
|
#include "cpu/tms0980/tms0980.h"
|
||||||
#include "sound/speaker.h"
|
#include "sound/speaker.h"
|
||||||
@ -14,6 +20,8 @@ public:
|
|||||||
, m_speaker(*this, "speaker")
|
, m_speaker(*this, "speaker")
|
||||||
{ }
|
{ }
|
||||||
|
|
||||||
|
virtual void machine_start();
|
||||||
|
|
||||||
required_device<device_t> m_speaker;
|
required_device<device_t> m_speaker;
|
||||||
|
|
||||||
DECLARE_READ8_MEMBER(read_k);
|
DECLARE_READ8_MEMBER(read_k);
|
||||||
@ -26,8 +34,7 @@ protected:
|
|||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
|
#define LOG 0
|
||||||
#define LOG 1
|
|
||||||
|
|
||||||
|
|
||||||
static INPUT_PORTS_START( merlin )
|
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 =
|
static const tms0980_config merlin_tms0980_config =
|
||||||
{
|
{
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user