summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatarGravatar hap <happppp@users.noreply.github.com>2020-01-06 23:33:11 +0100
committerGravatarGravatar hap <happppp@users.noreply.github.com>2020-01-06 23:33:24 +0100
commitf630b4d194051300cbcc404391932910f46375ae (patch) (github)
treef9c6d837da15e8753f9c0c23ce8738308d7d1376
parentcdd8da5ca1e772425c62d88fc81308d6814965eb (diff)
downloadmame-f630b4d194051300cbcc404391932910f46375ae.tar.bz2
mame-f630b4d194051300cbcc404391932910f46375ae.zip
model1: create "screen" before "ioboard:screen" (nw)
-rw-r--r--src/mame/drivers/model1.cpp12
-rw-r--r--src/mame/layout/model1io2.lay2
2 files changed, 7 insertions, 7 deletions
diff --git a/src/mame/drivers/model1.cpp b/src/mame/drivers/model1.cpp
index 094a1288425..c7f285aaba2 100644
--- a/src/mame/drivers/model1.cpp
+++ b/src/mame/drivers/model1.cpp
@@ -1705,12 +1705,6 @@ void model1_state::model1(machine_config &config)
m_tgp_copro->set_addrmap(AS_IO, &model1_state::copro_io_map);
m_tgp_copro->set_addrmap(mb86233_device::AS_RF, &model1_state::copro_rf_map);
- model1io_device &ioboard(SEGA_MODEL1IO(config, "ioboard", 0));
- ioboard.read_callback().set(m_dpram, FUNC(mb8421_device::left_r));
- ioboard.write_callback().set(m_dpram, FUNC(mb8421_device::left_w));
- ioboard.in_callback<0>().set_ioport("IN.0");
- ioboard.in_callback<1>().set_ioport("IN.1");
-
MB8421(config, m_dpram, 0);
S24TILE(config, m_tiles, 0, 0x3fff).set_palette(m_palette);
@@ -1723,6 +1717,12 @@ void model1_state::model1(machine_config &config)
PALETTE(config, m_palette).set_format(palette_device::xBGR_555, 8192);
+ model1io_device &ioboard(SEGA_MODEL1IO(config, "ioboard", 0));
+ ioboard.read_callback().set(m_dpram, FUNC(mb8421_device::left_r));
+ ioboard.write_callback().set(m_dpram, FUNC(mb8421_device::left_w));
+ ioboard.in_callback<0>().set_ioport("IN.0");
+ ioboard.in_callback<1>().set_ioport("IN.1");
+
SEGAM1AUDIO(config, m_m1audio, 0);
m_m1audio->rxd_handler().set(m_m1uart, FUNC(i8251_device::write_rxd));
diff --git a/src/mame/layout/model1io2.lay b/src/mame/layout/model1io2.lay
index 9d7e21d2877..107f0c86ebd 100644
--- a/src/mame/layout/model1io2.lay
+++ b/src/mame/layout/model1io2.lay
@@ -18,7 +18,7 @@
</element>
<view name="Default">
- <!-- workaround for MAME selecting a 3-screen view by default -->
+ <!-- workaround for MAME selecting a 2-screen view by default -->
<screen tag="ioboard:screen"><bounds left="0" top="0" right="1" bottom="1" /></screen>
<screen tag="screen">