summaryrefslogtreecommitdiffstatshomepage
path: root/src/mame/includes/ccastles.h
diff options
context:
space:
mode:
author AJR <ajrhacker@users.noreply.github.com>2018-05-31 15:03:03 -0400
committer AJR <ajrhacker@users.noreply.github.com>2018-05-31 15:03:03 -0400
commitb4ef226b834154ad55b331570d557910edd605b8 (patch)
treedd36e2d9f8273240a569980250a990dfd6275a14 /src/mame/includes/ccastles.h
parent8e6b484e860066bd421f2d7fe00fc7a828324ae0 (diff)
ccastles: Add addressable latches (nw)
Diffstat (limited to 'src/mame/includes/ccastles.h')
-rw-r--r--src/mame/includes/ccastles.h18
1 files changed, 8 insertions, 10 deletions
diff --git a/src/mame/includes/ccastles.h b/src/mame/includes/ccastles.h
index 32836b8b15a..bdf158a7072 100644
--- a/src/mame/includes/ccastles.h
+++ b/src/mame/includes/ccastles.h
@@ -11,6 +11,7 @@
#pragma once
#include "cpu/m6502/m6502.h"
+#include "machine/74259.h"
#include "machine/x2212.h"
#include "screen.h"
@@ -21,13 +22,13 @@ public:
driver_device(mconfig, type, tag),
m_maincpu(*this, "maincpu"),
m_nvram_4b(*this, "nvram_4b"),
- m_nvram_4a(*this, "nvram_4a") ,
+ m_nvram_4a(*this, "nvram_4a"),
+ m_outlatch(*this, "outlatch%u", 0U),
m_videoram(*this, "videoram"),
m_spriteram(*this, "spriteram"),
m_gfxdecode(*this, "gfxdecode"),
m_screen(*this, "screen"),
- m_palette(*this, "palette"),
- m_leds(*this, "led%u", 0U)
+ m_palette(*this, "palette")
{ }
DECLARE_CUSTOM_INPUT_MEMBER(get_vblank);
@@ -35,12 +36,10 @@ public:
protected:
DECLARE_WRITE8_MEMBER(irq_ack_w);
- DECLARE_WRITE8_MEMBER(led_w);
- DECLARE_WRITE8_MEMBER(ccounter_w);
- DECLARE_WRITE8_MEMBER(bankswitch_w);
+ template<int C> DECLARE_WRITE_LINE_MEMBER(ccounter_w);
DECLARE_READ8_MEMBER(leta_r);
DECLARE_WRITE8_MEMBER(nvram_recall_w);
- DECLARE_WRITE8_MEMBER(nvram_store_w);
+ DECLARE_WRITE_LINE_MEMBER(nvram_store_w);
DECLARE_READ8_MEMBER(nvram_r);
DECLARE_WRITE8_MEMBER(nvram_w);
DECLARE_WRITE8_MEMBER(ccastles_hscroll_w);
@@ -66,6 +65,8 @@ private:
required_device<m6502_device> m_maincpu;
required_device<x2212_device> m_nvram_4b;
required_device<x2212_device> m_nvram_4a;
+ required_device_array<ls259_device, 2> m_outlatch;
+
/* memory pointers */
required_shared_ptr<uint8_t> m_videoram;
required_shared_ptr<uint8_t> m_spriteram;
@@ -73,7 +74,6 @@ private:
required_device<gfxdecode_device> m_gfxdecode;
required_device<screen_device> m_screen;
required_device<palette_device> m_palette;
- output_finder<2> m_leds;
/* video-related */
const uint8_t *m_syncprom;
@@ -83,7 +83,6 @@ private:
double m_rweights[3];
double m_gweights[3];
double m_bweights[3];
- uint8_t m_video_control[8];
uint8_t m_bitmode_addr[2];
uint8_t m_hscroll;
uint8_t m_vscroll;
@@ -93,7 +92,6 @@ private:
int m_vblank_end;
emu_timer *m_irq_timer;
uint8_t m_irq_state;
- uint8_t m_nvram_store[2];
};
#endif // MAME_INCLUDES_CCASTLES_H