summaryrefslogtreecommitdiffstatshomepage
path: root/src/mess/includes
diff options
context:
space:
mode:
author Wilbert Pol <wilbertpol@users.noreply.github.com>2015-08-01 13:42:32 +0200
committer Wilbert Pol <wilbertpol@users.noreply.github.com>2015-08-02 21:25:52 +0200
commit1a8d3bba5417e226301a20e49ec4fab8f2338326 (patch)
treee3d0a23a9dcd2eaf83bfb868ba78b87f8e43583b /src/mess/includes
parente225cdbdd190681c36e2a0db4dc75c37fce778c2 (diff)
ssystem3.c: reduce tagmap lookups (nw)
Diffstat (limited to 'src/mess/includes')
-rw-r--r--src/mess/includes/ssystem3.h28
1 files changed, 19 insertions, 9 deletions
diff --git a/src/mess/includes/ssystem3.h b/src/mess/includes/ssystem3.h
index 64ed29b7427..0dbbb867a1c 100644
--- a/src/mess/includes/ssystem3.h
+++ b/src/mess/includes/ssystem3.h
@@ -9,6 +9,8 @@
#ifndef SSYSTEM3_H_
#define SSYSTEM3_H_
+#include "machine/6522via.h"
+
struct playfield_t
{
@@ -40,14 +42,13 @@ class ssystem3_state : public driver_device
{
public:
ssystem3_state(const machine_config &mconfig, device_type type, const char *tag)
- : driver_device(mconfig, type, tag),
- m_maincpu(*this, "maincpu"),
- m_palette(*this, "palette") { }
+ : driver_device(mconfig, type, tag)
+ , m_maincpu(*this, "maincpu")
+ , m_palette(*this, "palette")
+ , m_via6522_0(*this, "via6522_0")
+ , m_configuration(*this, "Configuration")
+ { }
- UINT8 m_porta;
- UINT8 *m_videoram;
- playfield_t m_playfield;
- lcd_t m_lcd;
DECLARE_DRIVER_INIT(ssystem3);
virtual void video_start();
DECLARE_PALETTE_INIT(ssystem3);
@@ -56,8 +57,6 @@ public:
DECLARE_READ8_MEMBER(ssystem3_via_read_a);
DECLARE_READ8_MEMBER(ssystem3_via_read_b);
DECLARE_WRITE8_MEMBER(ssystem3_via_write_b);
- required_device<cpu_device> m_maincpu;
- required_device<palette_device> m_palette;
void ssystem3_lcd_reset();
void ssystem3_lcd_write(int clock, int data);
void ssystem3_draw_7segment(bitmap_ind16 &bitmap,int value, int x, int y);
@@ -66,6 +65,17 @@ public:
void ssystem3_playfield_reset();
void ssystem3_playfield_write(int reset, int signal);
void ssystem3_playfield_read(int *on, int *ready);
+
+private:
+ UINT8 m_porta;
+ UINT8 *m_videoram;
+ playfield_t m_playfield;
+ lcd_t m_lcd;
+
+ required_device<cpu_device> m_maincpu;
+ required_device<palette_device> m_palette;
+ required_device<via6522_device> m_via6522_0;
+ required_ioport m_configuration;
};