summaryrefslogtreecommitdiffstatshomepage
path: root/src/mess/drivers/supracan.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/mess/drivers/supracan.c')
-rw-r--r--src/mess/drivers/supracan.c36
1 files changed, 18 insertions, 18 deletions
diff --git a/src/mess/drivers/supracan.c b/src/mess/drivers/supracan.c
index 810bdb5a1b7..84e53ad69c4 100644
--- a/src/mess/drivers/supracan.c
+++ b/src/mess/drivers/supracan.c
@@ -115,8 +115,8 @@ class supracan_state : public driver_device
public:
supracan_state(const machine_config &mconfig, device_type type, const char *tag)
: driver_device(mconfig, type, tag),
- m_maincpu(*this, "maincpu"),
- m_soundram(*this, "soundram")
+ m_maincpu(*this, "maincpu"),
+ m_soundram(*this, "soundram")
{
m_m6502_reset = 0;
}
@@ -248,7 +248,7 @@ static int supracan_tilemap_get_region(running_machine &machine, int layer)
switch(gfx_mode)
{
- case 0: return 4;
+ case 0: return 4;
case 1: return 2;
case 2: return 1;
case 3: return 0;
@@ -504,7 +504,7 @@ static void draw_sprites(running_machine &machine, bitmap_ind16 &bitmap, const r
// printf("frame\n");
#define VRAM_MASK (0xffff)
- for(int i = start_word; i < end_word; i += 4)
+ for(int i = start_word; i < end_word; i += 4)
{
int x = supracan_vram[i+2] & 0x01ff;
int y = supracan_vram[i+0] & 0x01ff;
@@ -718,8 +718,8 @@ static void supracan_suprnova_draw_roz(running_machine &machine, bitmap_ind16 &b
{
int scroll = 0;//scrollram[(cy>>16)&0x3ff]);
UINT16 data = srcbitmap.pix16(
- (cy >> 16) & ymask,
- ((cx >> 16) - scroll) & xmask);
+ (cy >> 16) & ymask,
+ ((cx >> 16) - scroll) & xmask);
if ((data & transmask)!=0)
@@ -1429,7 +1429,7 @@ WRITE16_MEMBER( supracan_state::supracan_sound_w )
case 0x000a/2: /* Sound cpu IRQ request. */
machine().device("soundcpu")->execute().set_input_line(0, ASSERT_LINE);
break;
- case 0x001c/2: /* Sound cpu control. Bit 0 tied to sound cpu RESET line */
+ case 0x001c/2: /* Sound cpu control. Bit 0 tied to sound cpu RESET line */
if(data & 0x01)
{
if(!m_m6502_reset)
@@ -1828,17 +1828,17 @@ static const gfx_layout supracan_gfx2bpp =
static const UINT32 xtexlayout_xoffset[64] = { 0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,
- 24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,
- 45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63 };
+ 24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,
+ 45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63 };
static const UINT32 xtexlayout_yoffset[64] = { 0*64,1*64,2*64,3*64,4*64,5*64,6*64,7*64,8*64,
- 9*64,10*64,11*64,12*64,13*64,14*64,15*64,
- 16*64,17*64,18*64,19*64,20*64,21*64,22*64,23*64,
- 24*64,25*64,26*64,27*64,28*64,29*64,30*64,31*64,
- 32*64,33*64,34*64,35*64,36*64,37*64,38*64,39*64,
- 40*64,41*64,42*64,43*64,44*64,45*64,46*64,47*64,
+ 9*64,10*64,11*64,12*64,13*64,14*64,15*64,
+ 16*64,17*64,18*64,19*64,20*64,21*64,22*64,23*64,
+ 24*64,25*64,26*64,27*64,28*64,29*64,30*64,31*64,
+ 32*64,33*64,34*64,35*64,36*64,37*64,38*64,39*64,
+ 40*64,41*64,42*64,43*64,44*64,45*64,46*64,47*64,
48*64,49*64,50*64,51*64,52*64,53*64,54*64,55*64,
- 56*64,57*64,58*64,59*64,60*64,61*64,62*64,63*64 };
+ 56*64,57*64,58*64,59*64,60*64,61*64,62*64,63*64 };
static const gfx_layout supracan_gfx1bpp =
{
64,64,
@@ -1900,11 +1900,11 @@ INTERRUPT_GEN_MEMBER(supracan_state::supracan_sound_irq)
static MACHINE_CONFIG_START( supracan, supracan_state )
- MCFG_CPU_ADD( "maincpu", M68000, XTAL_10_738635MHz ) /* Correct frequency unknown */
+ MCFG_CPU_ADD( "maincpu", M68000, XTAL_10_738635MHz ) /* Correct frequency unknown */
MCFG_CPU_PROGRAM_MAP( supracan_mem )
MCFG_CPU_VBLANK_INT_DRIVER("screen", supracan_state, supracan_irq)
- MCFG_CPU_ADD( "soundcpu", M6502, XTAL_3_579545MHz ) /* TODO: Verify actual clock */
+ MCFG_CPU_ADD( "soundcpu", M6502, XTAL_3_579545MHz ) /* TODO: Verify actual clock */
MCFG_CPU_PROGRAM_MAP( supracan_sound_mem )
MCFG_CPU_VBLANK_INT_DRIVER("screen", supracan_state, supracan_sound_irq)
@@ -1915,7 +1915,7 @@ static MACHINE_CONFIG_START( supracan, supracan_state )
MCFG_SCREEN_ADD( "screen", RASTER )
- MCFG_SCREEN_RAW_PARAMS(XTAL_10_738635MHz/2, 348, 0, 256, 256, 0, 240 ) /* No idea if this is correct */
+ MCFG_SCREEN_RAW_PARAMS(XTAL_10_738635MHz/2, 348, 0, 256, 256, 0, 240 ) /* No idea if this is correct */
MCFG_SCREEN_UPDATE_DRIVER(supracan_state, screen_update_supracan)
MCFG_PALETTE_LENGTH( 32768 )
MCFG_GFXDECODE(supracan)