summaryrefslogtreecommitdiffstatshomepage
path: root/src/mame/drivers/model2.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/mame/drivers/model2.cpp')
-rw-r--r--src/mame/drivers/model2.cpp44
1 files changed, 22 insertions, 22 deletions
diff --git a/src/mame/drivers/model2.cpp b/src/mame/drivers/model2.cpp
index e22231f2acd..e480d1860e3 100644
--- a/src/mame/drivers/model2.cpp
+++ b/src/mame/drivers/model2.cpp
@@ -235,7 +235,7 @@ uint32_t model2_state::copro_fifoout_pop(address_space &space,uint32_t offset, u
uint32_t r;
m_maincpu->i960_noburst();
-
+
if (m_copro_fifoout_num == 0)
{
/* Reading from empty FIFO causes the i960 to enter wait state */
@@ -433,7 +433,7 @@ MACHINE_RESET_MEMBER(model2_state,model2_common)
m_timers[i]->reset();
m_uart->write_cts(0);
-
+
// initialize bufferram to a sane default
// TODO: HW can probably parse this at will somehow ...
for (i=0;i<0x20000/4;i++)
@@ -556,12 +556,12 @@ READ32_MEMBER(model2_state::fifoctl_r)
READ32_MEMBER(model2_state::videoctl_r)
{
uint8_t framenum;
-
+
if(m_render_mode == false)
framenum = (m_screen->frame_number() & 2) << 1;
else
framenum = (m_screen->frame_number() & 1) << 2;
-
+
return (framenum) | (m_videocontrol & 3);
}
@@ -723,7 +723,7 @@ CUSTOM_INPUT_MEMBER(model2_state::rchase2_devices_r)
uint8_t res;
res = 0xff;
-
+
if(m_cmd_data == 0xe0 || m_cmd_data == 0x0e)
res &= ~1;
if(m_cmd_data == 0xd0 || m_cmd_data == 0x0d)
@@ -732,7 +732,7 @@ CUSTOM_INPUT_MEMBER(model2_state::rchase2_devices_r)
res &= ~4;
if(m_cmd_data == 0x70 || m_cmd_data == 0x07)
res &= ~8;
-
+
return res;
}
@@ -1422,7 +1422,7 @@ WRITE32_MEMBER(model2_state::render_mode_w)
// undocumented, unknown purpose
m_render_unk = bool(BIT(data,14));
-// osd_printf_debug("Mode = %08X\n", data);
+// osd_printf_debug("Mode = %08X\n", data);
}
WRITE32_MEMBER(model2_state::model2o_tex_w0)
@@ -1515,17 +1515,17 @@ ADDRESS_MAP_START(model2_state::model2_base_mem)
AM_RANGE(0x06000000, 0x06ffffff) AM_ROM AM_REGION("main_data", 0x1000000)
AM_RANGE(0x10000000, 0x101fffff) AM_READWRITE(render_mode_r,render_mode_w)
-// AM_RANGE(0x10200000, 0x103fffff) renderer status register
+// AM_RANGE(0x10200000, 0x103fffff) renderer status register
AM_RANGE(0x10400000, 0x105fffff) AM_READ(polygon_count_r)
-// AM_RANGE(0x10600000, 0x107fffff) polygon data ping
-// AM_RANGE(0x10800000, 0x109fffff) polygon data pong
-// AM_RANGE(0x10a00000, 0x10bfffff) fill memory ping
-// AM_RANGE(0x10c00000, 0x10dfffff) fill memory pong
-
+// AM_RANGE(0x10600000, 0x107fffff) polygon data ping
+// AM_RANGE(0x10800000, 0x109fffff) polygon data pong
+// AM_RANGE(0x10a00000, 0x10bfffff) fill memory ping
+// AM_RANGE(0x10c00000, 0x10dfffff) fill memory pong
+
// format is xGGGGGBBBBBRRRRR (512x400)
AM_RANGE(0x11600000, 0x1167ffff) AM_RAM AM_SHARE("fbvram1") // framebuffer A (last bronx title screen)
AM_RANGE(0x11680000, 0x116fffff) AM_RAM AM_SHARE("fbvram2") // framebuffer B
-
+
AM_RANGE(0x12800000, 0x1281ffff) AM_READWRITE16(lumaram_r,lumaram_w,0x0000ffff) // polygon "luma" RAM
ADDRESS_MAP_END
@@ -1707,7 +1707,7 @@ ADDRESS_MAP_START(model2c_state::model2c_crx_mem)
AM_RANGE(0x11200000, 0x113fffff) AM_RAM AM_SHARE("textureram1") // texture RAM 1 (2b/2c)
AM_RANGE(0x11400000, 0x1140ffff) AM_READWRITE16(lumaram_r,lumaram_w,0xffffffff) // polygon "luma" RAM (2b/2c)
AM_RANGE(0x12800000, 0x1281ffff) AM_READWRITE16(lumaram_r,lumaram_w,0x0000ffff) // polygon "luma" RAM
-
+
AM_RANGE(0x01c00000, 0x01c0001f) AM_READ8(model2_crx_in_r, 0x00ff00ff)
AM_RANGE(0x01c00000, 0x01c00003) AM_WRITE(ctrl0_w)
AM_RANGE(0x01c00014, 0x01c00017) AM_WRITE(hotd_lightgun_w)
@@ -1752,7 +1752,7 @@ static INPUT_PORTS_START( desert )
PORT_SERVICE_NO_TOGGLE(0x04, IP_ACTIVE_LOW )
PORT_BIT(0x08, IP_ACTIVE_LOW, IPT_SERVICE1 )
PORT_BIT(0x10, IP_ACTIVE_LOW, IPT_START1 )
- PORT_BIT(0x20, IP_ACTIVE_LOW, IPT_BUTTON4 ) PORT_PLAYER(1) PORT_NAME("VR1 (Blue)")
+ PORT_BIT(0x20, IP_ACTIVE_LOW, IPT_BUTTON4 ) PORT_PLAYER(1) PORT_NAME("VR1 (Blue)")
PORT_BIT(0x40, IP_ACTIVE_LOW, IPT_BUTTON5 ) PORT_PLAYER(1) PORT_NAME("VR2 (Green)")
PORT_BIT(0x80, IP_ACTIVE_LOW, IPT_BUTTON6 ) PORT_PLAYER(1) PORT_NAME("VR3 (Red)")
@@ -1835,7 +1835,7 @@ static INPUT_PORTS_START( daytona )
PORT_START("BRAKE")
PORT_BIT(0xff, 0x00, IPT_PEDAL2 ) PORT_SENSITIVITY(30) PORT_KEYDELTA(10) PORT_PLAYER(1)
-
+
PORT_START("GEARS") // fake to handle gear bits
PORT_BIT(0x01, IP_ACTIVE_HIGH, IPT_BUTTON1) PORT_PLAYER(1) PORT_NAME("GEAR N")
PORT_BIT(0x02, IP_ACTIVE_HIGH, IPT_BUTTON2) PORT_PLAYER(1) PORT_NAME("GEAR 1")
@@ -2044,7 +2044,7 @@ INPUT_PORTS_END
static INPUT_PORTS_START( vstriker )
PORT_INCLUDE(model2)
-
+
// oddly enough service mode returns standard 1-2-3 layout but actual ingame is 2-3-1
// also bit 3 repeats bit 2 functionality.
PORT_MODIFY("IN1")
@@ -2241,7 +2241,7 @@ MACHINE_CONFIG_START(model2_state::model2_screen)
// TODO: from System 24, might not be accurate for Model 2
MCFG_SCREEN_RAW_PARAMS(VIDEO_CLOCK/2, 656, 0/*+69*/, 496/*+69*/, 424, 0/*+25*/, 384/*+25*/)
MCFG_SCREEN_UPDATE_DRIVER(model2_state, screen_update_model2)
-
+
MCFG_PALETTE_ADD("palette", 8192)
MACHINE_CONFIG_END
@@ -2334,7 +2334,7 @@ MACHINE_CONFIG_END
MACHINE_CONFIG_START(model2o_maxx_state::daytona_maxx)
daytona(config);
-
+
MCFG_CPU_MODIFY("maincpu")
MCFG_CPU_PROGRAM_MAP(model2o_maxx_mem)
MACHINE_CONFIG_END
@@ -3926,7 +3926,7 @@ ROM_START( stcc ) /* Sega Touring Car Championship, Model 2C - Defaults to Japan
ROM_COPY( "textures", 0x800000, 0xd00000, 0x100000 )
ROM_COPY( "textures", 0x800000, 0xe00000, 0x100000 )
ROM_COPY( "textures", 0x800000, 0xf00000, 0x100000 )
-
+
ROM_REGION( 0x100000, "audiocpu", 0 ) // Sound program
ROM_LOAD16_WORD_SWAP("epr-19274.31", 0x080000, 0x20000, CRC(2dcc08ae) SHA1(bad26e2c994f2d4db5d9be0e34cf21a8bf5aa7e9) )
@@ -5383,7 +5383,7 @@ ROM_START( fvipers ) /* Fighting Vipers Revision D, Model 2B, Sega Game ID# 833-
ROM_LOAD32_WORD("mpr-18613.10", 0x0800002, 0x400000, CRC(f057cdf2) SHA1(e16d5de2a00670aba4fbe0dc88ccf317de9842be) )
ROM_LOAD32_WORD("epr-18610d.7", 0x1000000, 0x080000, CRC(a1871703) SHA1(8d7b362a8fd9d63f5cea2f3fab97e5fe3fa30d87) )
ROM_LOAD32_WORD("epr-18611d.8", 0x1000002, 0x080000, CRC(39a75fee) SHA1(c962805f03e2503dd1671ba3e906c6e306a92e48) )
- ROM_COPY( "main_data", 0x1000000, 0x1100000, 0x100000 )
+ ROM_COPY( "main_data", 0x1000000, 0x1100000, 0x100000 )
ROM_COPY( "main_data", 0x1000000, 0x1200000, 0x100000 )
ROM_COPY( "main_data", 0x1000000, 0x1300000, 0x100000 )
ROM_COPY( "main_data", 0x1000000, 0x1400000, 0x100000 )