summaryrefslogtreecommitdiffstatshomepage
path: root/src/mame/includes/lviv.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/mame/includes/lviv.h')
-rw-r--r--src/mame/includes/lviv.h21
1 files changed, 18 insertions, 3 deletions
diff --git a/src/mame/includes/lviv.h b/src/mame/includes/lviv.h
index ce9c317c551..dc98fb4570b 100644
--- a/src/mame/includes/lviv.h
+++ b/src/mame/includes/lviv.h
@@ -14,6 +14,7 @@
#include "machine/i8255.h"
#include "machine/ram.h"
#include "sound/spkrdev.h"
+#include "screen.h"
class lviv_state : public driver_device
{
@@ -21,10 +22,17 @@ public:
lviv_state(const machine_config &mconfig, device_type type, const char *tag)
: driver_device(mconfig, type, tag),
m_maincpu(*this, "maincpu"),
+ m_ram(*this, RAM_TAG),
+ m_ppi(*this, "ppi8255_%u", 0U),
m_speaker(*this, "speaker"),
m_cassette(*this, "cassette"),
- m_ram(*this, RAM_TAG),
- m_palette(*this, "palette") { }
+ m_screen(*this, "screen"),
+ m_palette(*this, "palette"),
+ m_maincpu_region(*this, "maincpu"),
+ m_bank(*this, "bank%u", 1U),
+ m_key(*this, "KEY%u", 0U),
+ m_joy_port(*this, "JOY")
+ { }
unsigned char * m_video_ram;
unsigned short m_colortable[1][4];
@@ -49,10 +57,17 @@ public:
DECLARE_WRITE8_MEMBER(lviv_ppi_1_portb_w);
DECLARE_WRITE8_MEMBER(lviv_ppi_1_portc_w);
required_device<cpu_device> m_maincpu;
+ required_device<ram_device> m_ram;
+ required_device_array<i8255_device, 2> m_ppi;
required_device<speaker_sound_device> m_speaker;
required_device<cassette_image_device> m_cassette;
- required_device<ram_device> m_ram;
+ required_device<screen_device> m_screen;
required_device<palette_device> m_palette;
+ required_memory_region m_maincpu_region;
+ required_memory_bank_array<4> m_bank;
+ required_ioport_array<12> m_key;
+ required_ioport m_joy_port;
+
void lviv_update_palette(uint8_t pal);
void lviv_update_memory ();
void lviv_setup_snapshot (uint8_t * data);