summaryrefslogtreecommitdiffstatshomepage
path: root/src/mame/drivers/iqblock.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/mame/drivers/iqblock.c')
-rw-r--r--src/mame/drivers/iqblock.c66
1 files changed, 33 insertions, 33 deletions
diff --git a/src/mame/drivers/iqblock.c b/src/mame/drivers/iqblock.c
index 84965deda63..41132b5d395 100644
--- a/src/mame/drivers/iqblock.c
+++ b/src/mame/drivers/iqblock.c
@@ -59,16 +59,16 @@ Grndtour:
WRITE8_MEMBER(iqblock_state::iqblock_prot_w)
{
- m_rambase[0xe26] = data;
- m_rambase[0xe27] = data;
- m_rambase[0xe1c] = data;
+ m_rambase[0xe26] = data;
+ m_rambase[0xe27] = data;
+ m_rambase[0xe1c] = data;
}
WRITE8_MEMBER(iqblock_state::grndtour_prot_w)
{
m_rambase[0xe39] = data;
- m_rambase[0xe3a] = data;
- m_rambase[0xe2f] = data;
+ m_rambase[0xe3a] = data;
+ m_rambase[0xe2f] = data;
}
@@ -82,7 +82,7 @@ TIMER_DEVICE_CALLBACK_MEMBER(iqblock_state::iqblock_irq)
if((scanline % 32) == 16)
m_maincpu->set_input_line(0, HOLD_LINE);
- else if ((scanline % 32) == 0)
+ else if ((scanline % 32) == 0)
m_maincpu->set_input_line(INPUT_LINE_NMI, PULSE_LINE);
}
@@ -113,12 +113,12 @@ WRITE8_MEMBER(iqblock_state::port_C_w)
static I8255A_INTERFACE( ppi8255_intf )
{
- DEVCB_INPUT_PORT("P1"), /* Port A read */
- DEVCB_NULL, /* Port A write */
- DEVCB_INPUT_PORT("P2"), /* Port B read */
- DEVCB_NULL, /* Port B write */
- DEVCB_INPUT_PORT("EXTRA"), /* Port C read */
- DEVCB_DRIVER_MEMBER(iqblock_state,port_C_w) /* Port C write */
+ DEVCB_INPUT_PORT("P1"), /* Port A read */
+ DEVCB_NULL, /* Port A write */
+ DEVCB_INPUT_PORT("P2"), /* Port B read */
+ DEVCB_NULL, /* Port B write */
+ DEVCB_INPUT_PORT("EXTRA"), /* Port C read */
+ DEVCB_DRIVER_MEMBER(iqblock_state,port_C_w) /* Port C write */
};
@@ -132,7 +132,7 @@ static ADDRESS_MAP_START( main_portmap, AS_IO, 8, iqblock_state )
AM_RANGE(0x2000, 0x23ff) AM_WRITE(paletteram_xBBBBBGGGGGRRRRR_byte_split_lo_w)
AM_RANGE(0x2800, 0x2bff) AM_WRITE(paletteram_xBBBBBGGGGGRRRRR_byte_split_hi_w)
AM_RANGE(0x6000, 0x603f) AM_WRITE(iqblock_fgscroll_w)
- AM_RANGE(0x6800, 0x69ff) AM_WRITE(iqblock_fgvideoram_w) /* initialized up to 6fff... bug or larger tilemap? */
+ AM_RANGE(0x6800, 0x69ff) AM_WRITE(iqblock_fgvideoram_w) /* initialized up to 6fff... bug or larger tilemap? */
AM_RANGE(0x7000, 0x7fff) AM_WRITE(iqblock_bgvideoram_w)
AM_RANGE(0x5080, 0x5083) AM_DEVREADWRITE("ppi8255", i8255_device, read, write)
AM_RANGE(0x5090, 0x5090) AM_READ_PORT("SW0")
@@ -152,27 +152,27 @@ static INPUT_PORTS_START( iqblock )
PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_8WAY
PORT_BIT( 0x20, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT ) PORT_8WAY
PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_BUTTON1 )
- PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_BUTTON2 ) // "test mode" only
+ PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_BUTTON2 ) // "test mode" only
PORT_START("P2")
- PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_COIN2 ) // "test mode" only
+ PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_COIN2 ) // "test mode" only
PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_START2 )
PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_8WAY PORT_COCKTAIL
PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_8WAY PORT_COCKTAIL
PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_8WAY PORT_COCKTAIL
PORT_BIT( 0x20, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT ) PORT_8WAY PORT_COCKTAIL
PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_BUTTON1 ) PORT_COCKTAIL
- PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_BUTTON2 ) PORT_COCKTAIL // "test mode" only
+ PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_BUTTON2 ) PORT_COCKTAIL // "test mode" only
PORT_START("EXTRA")
- PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_BUTTON3 ) // "test mode" only
- PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_BUTTON4 ) // "test mode" only
- PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_BUTTON3 ) PORT_COCKTAIL // "test mode" only
- PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_BUTTON4 ) PORT_COCKTAIL // "test mode" only
+ PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_BUTTON3 ) // "test mode" only
+ PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_BUTTON4 ) // "test mode" only
+ PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_BUTTON3 ) PORT_COCKTAIL // "test mode" only
+ PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_BUTTON4 ) PORT_COCKTAIL // "test mode" only
PORT_BIT( 0xf0, IP_ACTIVE_LOW, IPT_UNUSED )
PORT_START("SW0")
- PORT_DIPNAME( 0x03, 0x03, "Unknown SW 0-0&1" ) // Difficulty ? Read notes above
+ PORT_DIPNAME( 0x03, 0x03, "Unknown SW 0-0&1" ) // Difficulty ? Read notes above
PORT_DIPSETTING( 0x03, "0" )
PORT_DIPSETTING( 0x02, "1" )
PORT_DIPSETTING( 0x01, "2" )
@@ -196,7 +196,7 @@ static INPUT_PORTS_START( iqblock )
PORT_DIPSETTING( 0x00, DEF_STR( On ) )
PORT_START("SW1")
- PORT_DIPNAME( 0x01, 0x00, "Demo Sounds?" ) // To be confirmed ! Read notes above
+ PORT_DIPNAME( 0x01, 0x00, "Demo Sounds?" ) // To be confirmed ! Read notes above
PORT_DIPSETTING( 0x01, DEF_STR( Off ) )
PORT_DIPSETTING( 0x00, DEF_STR( On ) )
PORT_DIPNAME( 0x02, 0x02, DEF_STR( Free_Play ) )
@@ -239,8 +239,8 @@ static const gfx_layout tilelayout2 =
RGN_FRAC(1,2),
4,
{ 8, 0, RGN_FRAC(1,2)+8, RGN_FRAC(1,2)+0 },
- { 0, 1, 2, 3, 4, 5, 6, 7 },
- { 0*16, 1*16, 2*16, 3*16, 4*16, 5*16, 6*16, 7*16,
+ { 0, 1, 2, 3, 4, 5, 6, 7 },
+ { 0*16, 1*16, 2*16, 3*16, 4*16, 5*16, 6*16, 7*16,
8*16, 9*16, 10*16, 11*16, 12*16, 13*16, 14*16, 15*16,
16*16, 17*16, 18*16, 19*16, 20*16, 21*16, 22*16, 23*16,
24*16, 25*16, 26*16, 27*16, 28*16, 29*16, 30*16, 31*16 },
@@ -253,8 +253,8 @@ static const gfx_layout tilelayout3 =
RGN_FRAC(1,3),
6,
{ 8, 0, RGN_FRAC(1,3)+8, RGN_FRAC(1,3)+0, RGN_FRAC(2,3)+8, RGN_FRAC(2,3)+0 },
- { 0, 1, 2, 3, 4, 5, 6, 7 },
- { 0*16, 1*16, 2*16, 3*16, 4*16, 5*16, 6*16, 7*16,
+ { 0, 1, 2, 3, 4, 5, 6, 7 },
+ { 0*16, 1*16, 2*16, 3*16, 4*16, 5*16, 6*16, 7*16,
8*16, 9*16, 10*16, 11*16, 12*16, 13*16, 14*16, 15*16,
16*16, 17*16, 18*16, 19*16, 20*16, 21*16, 22*16, 23*16,
24*16, 25*16, 26*16, 27*16, 28*16, 29*16, 30*16, 31*16 },
@@ -262,8 +262,8 @@ static const gfx_layout tilelayout3 =
};
static GFXDECODE_START( iqblock )
- GFXDECODE_ENTRY( "gfx1", 0, tilelayout1, 0, 16 ) /* only odd color codes are used */
- GFXDECODE_ENTRY( "gfx2", 0, tilelayout2, 0, 4 ) /* only color codes 0 and 3 used */
+ GFXDECODE_ENTRY( "gfx1", 0, tilelayout1, 0, 16 ) /* only odd color codes are used */
+ GFXDECODE_ENTRY( "gfx2", 0, tilelayout2, 0, 4 ) /* only color codes 0 and 3 used */
GFXDECODE_END
@@ -271,7 +271,7 @@ GFXDECODE_END
static MACHINE_CONFIG_START( iqblock, iqblock_state )
/* basic machine hardware */
- MCFG_CPU_ADD("maincpu", Z80,12000000/2) /* 6 MHz */
+ MCFG_CPU_ADD("maincpu", Z80,12000000/2) /* 6 MHz */
MCFG_CPU_PROGRAM_MAP(main_map)
MCFG_CPU_IO_MAP(main_portmap)
MCFG_TIMER_DRIVER_ADD_SCANLINE("scantimer", iqblock_state, iqblock_irq, "screen", 0, 1)
@@ -348,11 +348,11 @@ Notes:
*/
ROM_START( iqblock )
- ROM_REGION( 0x20000, "maincpu", 0 ) /* 64k for code + 64K for extra RAM */
+ ROM_REGION( 0x20000, "maincpu", 0 ) /* 64k for code + 64K for extra RAM */
ROM_LOAD( "u7.v5", 0x0000, 0x10000, CRC(811f306e) SHA1(d0aef80f1624002d05721276358f26a3ef69a3f6) )
ROM_REGION( 0x8000, "user1", 0 )
- ROM_LOAD( "u8.6", 0x0000, 0x8000, CRC(2651bc27) SHA1(53e1d6ffd78c8a612863b29b0f8734e740d563c7) ) /* background maps, read by the CPU */
+ ROM_LOAD( "u8.6", 0x0000, 0x8000, CRC(2651bc27) SHA1(53e1d6ffd78c8a612863b29b0f8734e740d563c7) ) /* background maps, read by the CPU */
ROM_REGION( 0x60000, "gfx1", 0 )
ROM_LOAD( "u28.1", 0x00000, 0x20000, CRC(ec4b64b4) SHA1(000e9df0c0b5fcde5ead218dfcdc156bc4be909d) )
@@ -408,11 +408,11 @@ Notes:
*/
ROM_START( grndtour )
- ROM_REGION( 0x20000, "maincpu", 0 ) /* 64k for code + 64K for extra RAM */
+ ROM_REGION( 0x20000, "maincpu", 0 ) /* 64k for code + 64K for extra RAM */
ROM_LOAD( "grand7.u7", 0x0000, 0x10000, CRC(95cac31e) SHA1(47bbcce6981ea3d38e0aa49ccd3762a4529f3c96) )
ROM_REGION( 0x8000, "user1", 0 )
- ROM_LOAD( "grand6.u8", 0x0000, 0x8000, CRC(4c634b86) SHA1(c36df147187bc526f2348bc2f4d4c4e35bb45f38) ) /* background maps, read by the CPU */
+ ROM_LOAD( "grand6.u8", 0x0000, 0x8000, CRC(4c634b86) SHA1(c36df147187bc526f2348bc2f4d4c4e35bb45f38) ) /* background maps, read by the CPU */
ROM_REGION( 0xc0000, "gfx1", 0 )
ROM_LOAD( "grand1.u28", 0x00000, 0x40000, CRC(de85c664) SHA1(3a4b0cac88a0fea1c80541fe49c799e3550bedee) )