summaryrefslogtreecommitdiffstatshomepage
path: root/src/mame/includes/segas16b.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/segas16b.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/segas16b.h')
-rw-r--r--src/mame/includes/segas16b.h8
1 files changed, 6 insertions, 2 deletions
diff --git a/src/mame/includes/segas16b.h b/src/mame/includes/segas16b.h
index 16fe92e61ca..49d7077d2bf 100644
--- a/src/mame/includes/segas16b.h
+++ b/src/mame/includes/segas16b.h
@@ -13,6 +13,7 @@
#include "cpu/m68000/m68000.h"
#include "cpu/mcs51/mcs51.h"
#include "cpu/z80/z80.h"
+#include "machine/315_5195.h"
#include "machine/cxd1095.h"
#include "machine/gen_latch.h"
#include "machine/nvram.h"
@@ -25,6 +26,7 @@
#include "sound/volt_reg.h"
#include "video/segaic16.h"
#include "video/sega16sp.h"
+#include "screen.h"
// ======================> segas16b_state
@@ -47,11 +49,12 @@ public:
, m_cmptimer_1(*this, "cmptimer_1")
, m_cmptimer_2(*this, "cmptimer_2")
, m_nvram(*this, "nvram")
+ , m_screen(*this, "screen")
, m_sprites(*this, "sprites")
, m_segaic16vid(*this, "segaic16vid")
, m_soundlatch(*this, "soundlatch")
, m_cxdio(*this, "cxdio")
- , m_upd4701a(*this, {"upd4701a1", "upd4701a2"})
+ , m_upd4701a(*this, "upd4701a%u", 1U)
, m_workram(*this, "workram")
, m_romboard(ROM_BOARD_INVALID)
, m_tilemap_type(segaic16_video_device::TILEMAP_16B)
@@ -65,7 +68,7 @@ public:
, m_hwc_right(*this, "RIGHT")
, m_mj_input_num(0)
, m_mj_last_val(0)
- , m_mj_inputs(*this, {"MJ0", "MJ1", "MJ2", "MJ3", "MJ4", "MJ5"})
+ , m_mj_inputs(*this, "MJ%u", 0U)
, m_spritepalbase(0x400)
, m_gfxdecode(*this, "gfxdecode")
, m_sound_decrypted_opcodes(*this, "sound_decrypted_opcodes")
@@ -252,6 +255,7 @@ protected:
optional_device<sega_315_5250_compare_timer_device> m_cmptimer_1;
optional_device<sega_315_5250_compare_timer_device> m_cmptimer_2;
required_device<nvram_device> m_nvram;
+ required_device<screen_device> m_screen;
optional_device<sega_sys16b_sprite_device> m_sprites;
required_device<segaic16_video_device> m_segaic16vid;
optional_device<generic_latch_8_device> m_soundlatch; // not for atomicp