summaryrefslogtreecommitdiffstatshomepage
path: root/src/mess/includes
diff options
context:
space:
mode:
author Wilbert Pol <wilbertpol@users.noreply.github.com>2015-08-01 14:06:50 +0200
committer Wilbert Pol <wilbertpol@users.noreply.github.com>2015-08-02 21:25:52 +0200
commit435c80ef16b73e7c7c241036b8ca3bf6b5afcbc4 (patch)
tree9244ef3804e608c309aedc6644a2efd14278fba3 /src/mess/includes
parentb0ab01e8bc6370bcc93772fe05b4c82c25ce46c2 (diff)
tx0.c: reduce tagmap lookups (nw)
Diffstat (limited to 'src/mess/includes')
-rw-r--r--src/mess/includes/tx0.h12
1 files changed, 10 insertions, 2 deletions
diff --git a/src/mess/includes/tx0.h b/src/mess/includes/tx0.h
index b961a415224..98d111d72ec 100644
--- a/src/mess/includes/tx0.h
+++ b/src/mess/includes/tx0.h
@@ -136,7 +136,11 @@ public:
: driver_device(mconfig, type, tag),
m_maincpu(*this, "maincpu"),
m_gfxdecode(*this, "gfxdecode"),
- m_palette(*this, "palette") { }
+ m_palette(*this, "palette"),
+ m_crt(*this, "crt"),
+ m_csw(*this, "CSW"),
+ m_twr(*this, "TWR")
+ { }
tx0_tape_reader_t m_tape_reader;
tape_puncher_t m_tape_puncher;
@@ -152,7 +156,6 @@ public:
bitmap_ind16 m_typewriter_bitmap;
int m_pos;
int m_case_shift;
- crt_device *m_crt;
DECLARE_DRIVER_INIT(tx0);
virtual void machine_start();
virtual void machine_reset();
@@ -198,8 +201,13 @@ public:
DECLARE_WRITE_LINE_MEMBER(tx0_sel);
DECLARE_WRITE_LINE_MEMBER(tx0_io_reset_callback);
void magtape_callback();
+
+private:
required_device<gfxdecode_device> m_gfxdecode;
required_device<palette_device> m_palette;
+ required_device<crt_device> m_crt;
+ required_ioport m_csw;
+ required_ioport_array<4> m_twr;
};
/* defines for each bit and mask in input port "CSW" */