summaryrefslogtreecommitdiffstatshomepage
path: root/src/mame/includes/segahang.h
diff options
context:
space:
mode:
author AJR <ajrhacker@users.noreply.github.com>2019-10-19 22:35:04 -0400
committer AJR <ajrhacker@users.noreply.github.com>2019-10-19 22:40:04 -0400
commit270a2736b0770e5be2d9967b399e178500dbe7a5 (patch)
tree4bfe26c9e3f453e73f1c6d27641133c3862323f7 /src/mame/includes/segahang.h
parentc08c7d6e53a484570b7f0645f45bb2d529547e48 (diff)
segaic16.cpp: Code cleanup, reorganization and decoupling (nw)
- Move open_bus_r down into the 315-5195 mapper device (not 100% ideal, but the next best place) - Split out 315-5195 mapper device into separate source file and modernize logging - Move remaining portion of sega_16bit_common_base (all to do with palettes) into video/segaic16.cpp segahang.cpp: Split I/O handlers; eliminate probably unnecessary open bus read semantics to decouple from sega_16bit_common_base (nw)
Diffstat (limited to 'src/mame/includes/segahang.h')
-rw-r--r--src/mame/includes/segahang.h11
1 files changed, 6 insertions, 5 deletions
diff --git a/src/mame/includes/segahang.h b/src/mame/includes/segahang.h
index 134e8dbec89..41b5947eccd 100644
--- a/src/mame/includes/segahang.h
+++ b/src/mame/includes/segahang.h
@@ -12,10 +12,10 @@
#include "machine/adc0804.h"
#include "machine/i8255.h"
#include "machine/gen_latch.h"
-#include "machine/segaic16.h"
#include "video/segaic16.h"
#include "video/segaic16_road.h"
#include "video/sega16sp.h"
+#include "screen.h"
// ======================> segahang_state
@@ -33,6 +33,7 @@ public:
, m_i8255_1(*this, "i8255_1")
, m_i8255_2(*this, "i8255_2")
, m_adc(*this, "adc")
+ , m_screen(*this, "screen")
, m_sprites(*this, "sprites")
, m_segaic16vid(*this, "segaic16vid")
, m_segaic16road(*this, "segaic16road")
@@ -79,10 +80,9 @@ private:
DECLARE_READ8_MEMBER( adc_status_r );
// main CPU read/write handlers
- DECLARE_READ16_MEMBER( hangon_io_r );
- DECLARE_WRITE16_MEMBER( hangon_io_w );
- DECLARE_READ16_MEMBER( sharrier_io_r );
- DECLARE_WRITE16_MEMBER( sharrier_io_w );
+ uint8_t hangon_inputs_r(offs_t offset);
+ uint8_t sharrier_inputs_r(offs_t offset);
+ void sync_ppi_w(offs_t offset, uint8_t data);
// ADC0804 read handler
uint8_t analog_r();
@@ -135,6 +135,7 @@ private:
required_device<i8255_device> m_i8255_1;
required_device<i8255_device> m_i8255_2;
required_device<adc0804_device> m_adc;
+ required_device<screen_device> m_screen;
required_device<sega_16bit_sprite_device> m_sprites;
required_device<segaic16_video_device> m_segaic16vid;
required_device<segaic16_road_device> m_segaic16road;