summaryrefslogtreecommitdiffstatshomepage
path: root/src/mame/drivers/cbasebal.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/mame/drivers/cbasebal.c')
-rw-r--r--src/mame/drivers/cbasebal.c46
1 files changed, 23 insertions, 23 deletions
diff --git a/src/mame/drivers/cbasebal.c b/src/mame/drivers/cbasebal.c
index b31fe854717..81edadf3164 100644
--- a/src/mame/drivers/cbasebal.c
+++ b/src/mame/drivers/cbasebal.c
@@ -14,7 +14,7 @@
#include "emu.h"
#include "cpu/z80/z80.h"
-#include "includes/cps1.h" // needed for decoding functions only
+#include "includes/cps1.h" // needed for decoding functions only
#include "includes/cbasebal.h"
#include "machine/eeprom.h"
#include "sound/okim6295.h"
@@ -47,7 +47,7 @@ READ8_MEMBER(cbasebal_state::bankedram_r)
switch (m_rambank)
{
case 2:
- return cbasebal_textram_r(space, offset); /* VRAM */
+ return cbasebal_textram_r(space, offset); /* VRAM */
case 1:
if (offset < 0x800)
return m_generic_paletteram_8[offset];
@@ -55,7 +55,7 @@ READ8_MEMBER(cbasebal_state::bankedram_r)
return 0;
break;
default:
- return cbasebal_scrollram_r(space, offset); /* SCROLL */
+ return cbasebal_scrollram_r(space, offset); /* SCROLL */
}
}
@@ -94,11 +94,11 @@ WRITE8_MEMBER(cbasebal_state::cbasebal_coinctrl_w)
static const eeprom_interface cbasebal_eeprom_intf =
{
- 6, /* address bits */
- 16, /* data bits */
- "0110", /* read command */
- "0101", /* write command */
- "0111" /* erase command */
+ 6, /* address bits */
+ 16, /* data bits */
+ "0110", /* read command */
+ "0101", /* write command */
+ "0111" /* erase command */
};
@@ -111,8 +111,8 @@ static const eeprom_interface cbasebal_eeprom_intf =
static ADDRESS_MAP_START( cbasebal_map, AS_PROGRAM, 8, cbasebal_state )
AM_RANGE(0x0000, 0x7fff) AM_ROM
AM_RANGE(0x8000, 0xbfff) AM_ROMBANK("bank1")
- AM_RANGE(0xc000, 0xcfff) AM_READWRITE(bankedram_r, bankedram_w) AM_SHARE("paletteram") /* palette + vram + scrollram */
- AM_RANGE(0xe000, 0xfdff) AM_RAM /* work RAM */
+ AM_RANGE(0xc000, 0xcfff) AM_READWRITE(bankedram_r, bankedram_w) AM_SHARE("paletteram") /* palette + vram + scrollram */
+ AM_RANGE(0xe000, 0xfdff) AM_RAM /* work RAM */
AM_RANGE(0xfe00, 0xffff) AM_RAM AM_SHARE("spriteram")
ADDRESS_MAP_END
@@ -168,7 +168,7 @@ static INPUT_PORTS_START( cbasebal )
PORT_SERVICE( 0x08, IP_ACTIVE_LOW )
PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_START2 )
PORT_BIT( 0x20, IP_ACTIVE_LOW, IPT_START1 )
- PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_CUSTOM ) PORT_VBLANK("screen") /* ? */
+ PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_CUSTOM ) PORT_VBLANK("screen") /* ? */
PORT_BIT( 0x80, IP_ACTIVE_HIGH, IPT_SPECIAL ) PORT_READ_LINE_DEVICE_MEMBER("eeprom", eeprom_device, read_bit)
PORT_START( "IO_01" )
@@ -191,9 +191,9 @@ INPUT_PORTS_END
static const gfx_layout cbasebal_textlayout =
{
- 8,8, /* 8*8 characters */
- 4096, /* 4096 characters */
- 2, /* 2 bits per pixel */
+ 8,8, /* 8*8 characters */
+ 4096, /* 4096 characters */
+ 2, /* 2 bits per pixel */
{ 0, 4 },
{ 8+3, 8+2, 8+1, 8+0, 3, 2, 1, 0 },
{ 0*16, 1*16, 2*16, 3*16, 4*16, 5*16, 6*16, 7*16 },
@@ -202,9 +202,9 @@ static const gfx_layout cbasebal_textlayout =
static const gfx_layout cbasebal_tilelayout =
{
- 16,16, /* 16*16 tiles */
- 4096, /* 4096 tiles */
- 4, /* 4 bits per pixel */
+ 16,16, /* 16*16 tiles */
+ 4096, /* 4096 tiles */
+ 4, /* 4 bits per pixel */
{ 4096*64*8+4, 4096*64*8+0,4, 0 },
{ 0, 1, 2, 3, 8+0, 8+1, 8+2, 8+3,
16*16+0, 16*16+1, 16*16+2, 16*16+3, 16*16+8+0, 16*16+8+1, 16*16+8+2, 16*16+8+3 },
@@ -274,10 +274,10 @@ void cbasebal_state::machine_reset()
static MACHINE_CONFIG_START( cbasebal, cbasebal_state )
/* basic machine hardware */
- MCFG_CPU_ADD("maincpu", Z80, 6000000) /* ??? */
+ MCFG_CPU_ADD("maincpu", Z80, 6000000) /* ??? */
MCFG_CPU_PROGRAM_MAP(cbasebal_map)
MCFG_CPU_IO_MAP(cbasebal_portmap)
- MCFG_CPU_VBLANK_INT_DRIVER("screen", cbasebal_state, irq0_line_hold) /* ??? */
+ MCFG_CPU_VBLANK_INT_DRIVER("screen", cbasebal_state, irq0_line_hold) /* ??? */
MCFG_EEPROM_ADD("eeprom", cbasebal_eeprom_intf)
@@ -323,21 +323,21 @@ ROM_START( cbasebal )
/* 0x70000-0x8ffff empty (space for 04) */
ROM_REGION( 0x10000, "gfx1", 0 )
- ROM_LOAD( "cbj13.16m", 0x00000, 0x10000, CRC(2359fa0a) SHA1(3a37532ea43dd4b150c53a240d35a57a9b76d23d) ) /* text */
+ ROM_LOAD( "cbj13.16m", 0x00000, 0x10000, CRC(2359fa0a) SHA1(3a37532ea43dd4b150c53a240d35a57a9b76d23d) ) /* text */
ROM_REGION( 0x80000, "gfx2", 0 )
- ROM_LOAD( "cbj02.1f", 0x00000, 0x20000, CRC(d6740535) SHA1(2ece885525718fd5fe52b8fa4c07930695b89659) ) /* tiles */
+ ROM_LOAD( "cbj02.1f", 0x00000, 0x20000, CRC(d6740535) SHA1(2ece885525718fd5fe52b8fa4c07930695b89659) ) /* tiles */
ROM_LOAD( "cbj03.2f", 0x20000, 0x20000, CRC(88098dcd) SHA1(caddebeea581129d6a62fc9f7f354d61eef175c7) )
ROM_LOAD( "cbj08.1j", 0x40000, 0x20000, CRC(5f3344bf) SHA1(1d3193078108e86e31bbfce15a8d2443cfbf2ff6) )
ROM_LOAD( "cbj09.2j", 0x60000, 0x20000, CRC(aafffdae) SHA1(26e76b55fff49811df8e5b1f165be20ec8dd196a) )
ROM_REGION( 0x80000, "gfx3", 0 )
- ROM_LOAD( "cbj11.1m", 0x00000, 0x20000, CRC(bdc1507d) SHA1(efeaf3066acfb7186d73ad8e5b291d6e61965de2) ) /* sprites */
+ ROM_LOAD( "cbj11.1m", 0x00000, 0x20000, CRC(bdc1507d) SHA1(efeaf3066acfb7186d73ad8e5b291d6e61965de2) ) /* sprites */
ROM_LOAD( "cbj12.2m", 0x20000, 0x20000, CRC(973f3efe) SHA1(d776499d5ac4bc23eb5d1f28b88447cc07d8ac99) )
ROM_LOAD( "cbj14.1n", 0x40000, 0x20000, CRC(765dabaa) SHA1(742d1c50b65f649f23eac7976fe26c2d7400e4e1) )
ROM_LOAD( "cbj15.2n", 0x60000, 0x20000, CRC(74756de5) SHA1(791d6620cdb563f0b3a717432aa4647981b0a10e) )
- ROM_REGION( 0x80000, "oki", 0 ) /* OKIM */
+ ROM_REGION( 0x80000, "oki", 0 ) /* OKIM */
ROM_LOAD( "cbj01.1e", 0x00000, 0x20000, CRC(1d8968bd) SHA1(813e475d1d0c343e7dad516f1fe564d00c9c27fb) )
ROM_END