mirror of
https://github.com/holub/mame
synced 2025-05-06 22:35:43 +03:00
Whitespace cleanup. (No, a release is not yet imminent.)
This commit is contained in:
parent
7819b1fce7
commit
93d465ad3c
@ -1,19 +1,19 @@
|
|||||||
/***************************************************************************************************
|
/***************************************************************************************************
|
||||||
|
|
||||||
Cycle Mahbou (c) 1984 Taito Corporation / Seta
|
Cycle Mahbou (c) 1984 Taito Corporation / Seta
|
||||||
|
|
||||||
appears to be in the exact middle between the gsword / josvolly HW and the ppking / gladiator HW
|
appears to be in the exact middle between the gsword / josvolly HW and the ppking / gladiator HW
|
||||||
|
|
||||||
preliminary driver by Angelo Salese
|
preliminary driver by Angelo Salese
|
||||||
|
|
||||||
TODO:
|
TODO:
|
||||||
- protection (two 8741);
|
- protection (two 8741);
|
||||||
- colors;
|
- colors;
|
||||||
- fix remaining video issues;
|
- fix remaining video issues;
|
||||||
- sound;
|
- sound;
|
||||||
- add flipscreen;
|
- add flipscreen;
|
||||||
|
|
||||||
(wait until it completes the post test, then put 1 to be23)
|
(wait until it completes the post test, then put 1 to be23)
|
||||||
|
|
||||||
=====================================================================================================
|
=====================================================================================================
|
||||||
|
|
||||||
@ -124,7 +124,7 @@ static VIDEO_UPDATE( cyclemb )
|
|||||||
int tile = (cyclemb_vram[count]) | ((attr & 3)<<8);
|
int tile = (cyclemb_vram[count]) | ((attr & 3)<<8);
|
||||||
int color = ((attr & 0xf8) >> 3) ^ 0x1f;
|
int color = ((attr & 0xf8) >> 3) ^ 0x1f;
|
||||||
int odd_line = y & 1 ? 0x40 : 0x00;
|
int odd_line = y & 1 ? 0x40 : 0x00;
|
||||||
// int sx_offs = flip_screen ? 512 : 0
|
// int sx_offs = flip_screen ? 512 : 0
|
||||||
int scrollx = ((cyclemb_vram[(y/2)+odd_line]) + (cyclemb_cram[(y/2)+odd_line]<<8) + 48) & 0x1ff;
|
int scrollx = ((cyclemb_vram[(y/2)+odd_line]) + (cyclemb_cram[(y/2)+odd_line]<<8) + 48) & 0x1ff;
|
||||||
|
|
||||||
if(flip_screen)
|
if(flip_screen)
|
||||||
@ -145,28 +145,28 @@ static VIDEO_UPDATE( cyclemb )
|
|||||||
}
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
bank 1
|
bank 1
|
||||||
xxxx xxxx [0] sprite offset
|
xxxx xxxx [0] sprite offset
|
||||||
---x xxxx [1] color offset
|
---x xxxx [1] color offset
|
||||||
bank 2
|
bank 2
|
||||||
xxxx xxxx [0] y offs
|
xxxx xxxx [0] y offs
|
||||||
xxxx xxxx [1] x offs
|
xxxx xxxx [1] x offs
|
||||||
bank 3
|
bank 3
|
||||||
---- ---x [1] sprite enable flag?
|
---- ---x [1] sprite enable flag?
|
||||||
*/
|
*/
|
||||||
{
|
{
|
||||||
UINT8 col,fx,fy,region;
|
UINT8 col,fx,fy,region;
|
||||||
UINT16 spr_offs,i;
|
UINT16 spr_offs,i;
|
||||||
INT16 x,y;
|
INT16 x,y;
|
||||||
|
|
||||||
/*
|
/*
|
||||||
0x3b-0x3c-0x3d tire (0x13 0x00 / 0x17 0x00 )
|
0x3b-0x3c-0x3d tire (0x13 0x00 / 0x17 0x00 )
|
||||||
0x3b- shirt (0x16 0x00)
|
0x3b- shirt (0x16 0x00)
|
||||||
0x20 tire stick (0x16 0x00)
|
0x20 tire stick (0x16 0x00)
|
||||||
0x2e go sign (0x11 0x00)
|
0x2e go sign (0x11 0x00)
|
||||||
0x18 trampoline (0x13 0x00)
|
0x18 trampoline (0x13 0x00)
|
||||||
0x27 cone (0x13 0x00)
|
0x27 cone (0x13 0x00)
|
||||||
*/
|
*/
|
||||||
|
|
||||||
for(i=0;i<0x40;i+=2)
|
for(i=0;i<0x40;i+=2)
|
||||||
{
|
{
|
||||||
@ -185,7 +185,7 @@ static VIDEO_UPDATE( cyclemb )
|
|||||||
if(cyclemb_obj3_ram[i+1] & 1)
|
if(cyclemb_obj3_ram[i+1] & 1)
|
||||||
x+=256;
|
x+=256;
|
||||||
//if(cyclemb_obj3_ram[i+1] & 2)
|
//if(cyclemb_obj3_ram[i+1] & 2)
|
||||||
// x-=256;
|
// x-=256;
|
||||||
fx = (cyclemb_obj3_ram[i+0] & 4) >> 2;
|
fx = (cyclemb_obj3_ram[i+0] & 4) >> 2;
|
||||||
fy = (cyclemb_obj3_ram[i+0] & 8) >> 3;
|
fy = (cyclemb_obj3_ram[i+0] & 8) >> 3;
|
||||||
|
|
||||||
@ -247,7 +247,7 @@ static ADDRESS_MAP_START( cyclemb_map, ADDRESS_SPACE_PROGRAM, 8 )
|
|||||||
ADDRESS_MAP_END
|
ADDRESS_MAP_END
|
||||||
|
|
||||||
static ADDRESS_MAP_START( cyclemb_io, ADDRESS_SPACE_IO, 8 )
|
static ADDRESS_MAP_START( cyclemb_io, ADDRESS_SPACE_IO, 8 )
|
||||||
// ADDRESS_MAP_GLOBAL_MASK(0xff)
|
// ADDRESS_MAP_GLOBAL_MASK(0xff)
|
||||||
AM_RANGE(0xc000, 0xc000) AM_WRITE(cyclemb_bankswitch_w)
|
AM_RANGE(0xc000, 0xc000) AM_WRITE(cyclemb_bankswitch_w)
|
||||||
AM_RANGE(0xc09e, 0xc09f) AM_READWRITE(cyclemb_8741_0_r, cyclemb_8741_0_w)
|
AM_RANGE(0xc09e, 0xc09f) AM_READWRITE(cyclemb_8741_0_r, cyclemb_8741_0_w)
|
||||||
AM_RANGE(0xc0bf, 0xc0bf) AM_WRITE(cyclemb_flip_w) //flip screen
|
AM_RANGE(0xc0bf, 0xc0bf) AM_WRITE(cyclemb_flip_w) //flip screen
|
||||||
|
@ -402,7 +402,7 @@ static ADDRESS_MAP_START( ppking_cpu3_map, ADDRESS_SPACE_PROGRAM, 8 )
|
|||||||
ADDRESS_MAP_END
|
ADDRESS_MAP_END
|
||||||
|
|
||||||
static ADDRESS_MAP_START( ppking_cpu1_io, ADDRESS_SPACE_IO, 8 )
|
static ADDRESS_MAP_START( ppking_cpu1_io, ADDRESS_SPACE_IO, 8 )
|
||||||
// ADDRESS_MAP_GLOBAL_MASK(0xff)
|
// ADDRESS_MAP_GLOBAL_MASK(0xff)
|
||||||
AM_RANGE(0xc000, 0xc000) AM_WRITE(gladiatr_spritebuffer_w)
|
AM_RANGE(0xc000, 0xc000) AM_WRITE(gladiatr_spritebuffer_w)
|
||||||
AM_RANGE(0xc004, 0xc004) AM_NOP // WRITE(ppking_irq_patch_w)
|
AM_RANGE(0xc004, 0xc004) AM_NOP // WRITE(ppking_irq_patch_w)
|
||||||
AM_RANGE(0xc09e, 0xc09f) AM_READ(qx0_r) AM_WRITE(qx0_w)
|
AM_RANGE(0xc09e, 0xc09f) AM_READ(qx0_r) AM_WRITE(qx0_w)
|
||||||
@ -446,7 +446,7 @@ ADDRESS_MAP_END
|
|||||||
|
|
||||||
|
|
||||||
static ADDRESS_MAP_START( gladiatr_cpu1_io, ADDRESS_SPACE_IO, 8 )
|
static ADDRESS_MAP_START( gladiatr_cpu1_io, ADDRESS_SPACE_IO, 8 )
|
||||||
// ADDRESS_MAP_GLOBAL_MASK(0xff)
|
// ADDRESS_MAP_GLOBAL_MASK(0xff)
|
||||||
AM_RANGE(0xc000, 0xc000) AM_WRITE(gladiatr_spritebuffer_w)
|
AM_RANGE(0xc000, 0xc000) AM_WRITE(gladiatr_spritebuffer_w)
|
||||||
AM_RANGE(0xc001, 0xc001) AM_WRITE(gladiatr_spritebank_w)
|
AM_RANGE(0xc001, 0xc001) AM_WRITE(gladiatr_spritebank_w)
|
||||||
AM_RANGE(0xc002, 0xc002) AM_WRITE(gladiatr_bankswitch_w)
|
AM_RANGE(0xc002, 0xc002) AM_WRITE(gladiatr_bankswitch_w)
|
||||||
|
@ -3401,48 +3401,48 @@ have brought these ROMs up in MAME as Race Drivin. It will pass the self-test,
|
|||||||
game will come up with "DIVIDE BY ZERO ERR". Hitting F2 (Self Test) will display
|
game will come up with "DIVIDE BY ZERO ERR". Hitting F2 (Self Test) will display
|
||||||
"Hard Drivin / Race Drivin / Panorama Self Test P2.1" in the Test Menu.
|
"Hard Drivin / Race Drivin / Panorama Self Test P2.1" in the Test Menu.
|
||||||
|
|
||||||
Filename Location Label Board
|
Filename Location Label Board
|
||||||
-------------- -------------- ---------------------- -----------------------------
|
-------------- -------------- ---------------------- -----------------------------
|
||||||
088-1022 9H 136088-1022 CS 0022 ADSP II A047046-01
|
088-1022 9H 136088-1022 CS 0022 ADSP II A047046-01
|
||||||
088-1018 9/10H 136088-1018 CS 6518 "
|
088-1018 9/10H 136088-1018 CS 6518 "
|
||||||
088-1020 10H 136088-1020 CS BC20 "
|
088-1020 10H 136088-1020 CS BC20 "
|
||||||
088-1021 9K 136088-1021 CS A121 "
|
088-1021 9K 136088-1021 CS A121 "
|
||||||
088-1017 9/10K 136088-1017 CS 4B17 "
|
088-1017 9/10K 136088-1017 CS 4B17 "
|
||||||
088-1019 10K 136088-1019 CS 6219 "
|
088-1019 10K 136088-1019 CS 6219 "
|
||||||
|
|
||||||
088-2015 210Y 136088-2015 CS DF15 Multisync PCB A046901
|
088-2015 210Y 136088-2015 CS DF15 Multisync PCB A046901
|
||||||
088-2013 210X 136088-2013 CS DA13 "
|
088-2013 210X 136088-2013 CS DA13 "
|
||||||
088-2011 210W 136088-2011 CS 6E11 "
|
088-2011 210W 136088-2011 CS 6E11 "
|
||||||
088-2009 210V 136088-2009 CS 1F09 "
|
088-2009 210V 136088-2009 CS 1F09 "
|
||||||
088-2007 210U 136088-2007 CS 2F07 "
|
088-2007 210U 136088-2007 CS 2F07 "
|
||||||
088-2005 210T 136088-2005C CS D305 "
|
088-2005 210T 136088-2005C CS D305 "
|
||||||
088-2003 210S 136088-2003C CS 2303 "
|
088-2003 210S 136088-2003C CS 2303 "
|
||||||
088-2001 210R 136088-2001 CS DE01 "
|
088-2001 210R 136088-2001 CS DE01 "
|
||||||
088-2016 200Y 136088-2016 CS 0D16 "
|
088-2016 200Y 136088-2016 CS 0D16 "
|
||||||
088-2014 200X 136088-2014 CS EB14 "
|
088-2014 200X 136088-2014 CS EB14 "
|
||||||
088-2012 200W 136088-2012 CS 2912 "
|
088-2012 200W 136088-2012 CS 2912 "
|
||||||
088-2010 200V 136088-2010 CS FF10 "
|
088-2010 200V 136088-2010 CS FF10 "
|
||||||
088-2008 200U 136088-2008 CS BA08 "
|
088-2008 200U 136088-2008 CS BA08 "
|
||||||
088-2006 200T 136088-2006C CS D406 "
|
088-2006 200T 136088-2006C CS D406 "
|
||||||
088-2004 200S 136088-2004C CS 4504 "
|
088-2004 200S 136088-2004C CS 4504 "
|
||||||
088-2002 200R 136088-2002 CS A502 "
|
088-2002 200R 136088-2002 CS A502 "
|
||||||
|
|
||||||
088-1015 210Y 136088-1015 CS E215 Multisync PCB A045988
|
088-1015 210Y 136088-1015 CS E215 Multisync PCB A045988
|
||||||
088-1013 210X 136088-1013 CS 8F13 "
|
088-1013 210X 136088-1013 CS 8F13 "
|
||||||
088-1011 210W 136088-1011 CS 5111 "
|
088-1011 210W 136088-1011 CS 5111 "
|
||||||
088-1009 210V 136088-1009 CS EE09 "
|
088-1009 210V 136088-1009 CS EE09 "
|
||||||
088-1007 210U 136088-1007 CS 4D07 "
|
088-1007 210U 136088-1007 CS 4D07 "
|
||||||
088-1005 210T 136088-1005B CS 3905 "
|
088-1005 210T 136088-1005B CS 3905 "
|
||||||
088-1003 210S 136088-1003B CS 7403 "
|
088-1003 210S 136088-1003B CS 7403 "
|
||||||
088-1001 210R 136088-1001 CS 6701 "
|
088-1001 210R 136088-1001 CS 6701 "
|
||||||
088-1016 200Y 136088-1016 CS 3C16 "
|
088-1016 200Y 136088-1016 CS 3C16 "
|
||||||
088-1014 200X 136088-1014 CS 9C14 "
|
088-1014 200X 136088-1014 CS 9C14 "
|
||||||
088-1012 200W 136088-1012 CS C312 "
|
088-1012 200W 136088-1012 CS C312 "
|
||||||
088-1010 200V 136088-1010 CS 9410 "
|
088-1010 200V 136088-1010 CS 9410 "
|
||||||
088-1008 200U 136088-1008 CS 3408 "
|
088-1008 200U 136088-1008 CS 3408 "
|
||||||
088-1006 200T 136088-1006B CS A006 "
|
088-1006 200T 136088-1006B CS A006 "
|
||||||
088-1004 200S 136088-1004B CS A904 "
|
088-1004 200S 136088-1004B CS A904 "
|
||||||
088-1002 200R 136088-1002 CS FB02 "
|
088-1002 200R 136088-1002 CS FB02 "
|
||||||
|
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
@ -271,7 +271,7 @@ MACHINE_DRIVER_END
|
|||||||
|
|
||||||
ROM_START( metalmx )
|
ROM_START( metalmx )
|
||||||
/* ----------------------------------------
|
/* ----------------------------------------
|
||||||
Layer 1 (there are 2 of these boards)
|
Layer 1 (there are 2 of these boards)
|
||||||
---------------------------------------- */
|
---------------------------------------- */
|
||||||
|
|
||||||
ROM_REGION( 0x80000, "boot", 0 )
|
ROM_REGION( 0x80000, "boot", 0 )
|
||||||
@ -299,7 +299,7 @@ ROM_START( metalmx )
|
|||||||
ROM_LOAD( "103-1500.bin", 0x000, 0x117, CRC(9883af90) SHA1(62b4a0cce5832628149c48e6810055ad3919cc5b) )
|
ROM_LOAD( "103-1500.bin", 0x000, 0x117, CRC(9883af90) SHA1(62b4a0cce5832628149c48e6810055ad3919cc5b) )
|
||||||
|
|
||||||
/* ----------------------------------------
|
/* ----------------------------------------
|
||||||
Layer 2 (there are 2 of these boards)
|
Layer 2 (there are 2 of these boards)
|
||||||
---------------------------------------- */
|
---------------------------------------- */
|
||||||
|
|
||||||
ROM_REGION( 0x80000, "palslayer2", 0 )
|
ROM_REGION( 0x80000, "palslayer2", 0 )
|
||||||
@ -308,7 +308,7 @@ ROM_START( metalmx )
|
|||||||
ROM_LOAD( "xdec.bin", 0x000, 0x117, CRC(fcb37143) SHA1(c95a6714f151868d42722684c8b67e9356f70544) )
|
ROM_LOAD( "xdec.bin", 0x000, 0x117, CRC(fcb37143) SHA1(c95a6714f151868d42722684c8b67e9356f70544) )
|
||||||
|
|
||||||
/* ----------------------------------------
|
/* ----------------------------------------
|
||||||
Layer 3 (there are 2 of these boards)
|
Layer 3 (there are 2 of these boards)
|
||||||
---------------------------------------- */
|
---------------------------------------- */
|
||||||
|
|
||||||
ROM_REGION( 0x200000, "maincpu", 0 ) /* 68020 code */
|
ROM_REGION( 0x200000, "maincpu", 0 ) /* 68020 code */
|
||||||
@ -330,7 +330,7 @@ ROM_START( metalmx )
|
|||||||
ROM_LOAD( "103-1300.bin", 0x000, 0x157, CRC(eec18a29) SHA1(cc41cc921f59d385df805217f3b09bc289379f79) )
|
ROM_LOAD( "103-1300.bin", 0x000, 0x157, CRC(eec18a29) SHA1(cc41cc921f59d385df805217f3b09bc289379f79) )
|
||||||
|
|
||||||
/* ----------------------------
|
/* ----------------------------
|
||||||
Layer 4
|
Layer 4
|
||||||
---------------------------- */
|
---------------------------- */
|
||||||
|
|
||||||
ROM_REGION( 0x80000, "palslayer4", 0 )
|
ROM_REGION( 0x80000, "palslayer4", 0 )
|
||||||
@ -341,7 +341,7 @@ ROM_START( metalmx )
|
|||||||
ROM_LOAD( "103-1219.bin", 0x000, 0x117, CRC(bf08d1e8) SHA1(5710cbc941830594087320ed2b22bcbb2b5c48de) )
|
ROM_LOAD( "103-1219.bin", 0x000, 0x117, CRC(bf08d1e8) SHA1(5710cbc941830594087320ed2b22bcbb2b5c48de) )
|
||||||
|
|
||||||
/* ----------------------------
|
/* ----------------------------
|
||||||
Layer 5
|
Layer 5
|
||||||
---------------------------- */
|
---------------------------- */
|
||||||
|
|
||||||
ROM_REGION( 0x100000, "tex", 0 )
|
ROM_REGION( 0x100000, "tex", 0 )
|
||||||
|
@ -1855,7 +1855,7 @@ MACHINE_DRIVER_END
|
|||||||
|
|
||||||
static MACHINE_DRIVER_START( aw )
|
static MACHINE_DRIVER_START( aw )
|
||||||
MDRV_IMPORT_FROM(naomi_base)
|
MDRV_IMPORT_FROM(naomi_base)
|
||||||
// MDRV_DEVICE_REMOVE("main_eeprom")
|
// MDRV_DEVICE_REMOVE("main_eeprom")
|
||||||
MDRV_CPU_MODIFY("maincpu")
|
MDRV_CPU_MODIFY("maincpu")
|
||||||
MDRV_CPU_PROGRAM_MAP(aw_map)
|
MDRV_CPU_PROGRAM_MAP(aw_map)
|
||||||
MDRV_NVRAM_HANDLER(aw_nvram)
|
MDRV_NVRAM_HANDLER(aw_nvram)
|
||||||
|
@ -878,14 +878,14 @@ static WRITE8_HANDLER( suna8_wram_w )
|
|||||||
static WRITE8_HANDLER( sparkman_flipscreen_w )
|
static WRITE8_HANDLER( sparkman_flipscreen_w )
|
||||||
{
|
{
|
||||||
flip_screen_set(space->machine, data & 0x01);
|
flip_screen_set(space->machine, data & 0x01);
|
||||||
//if (data & ~0x01) logerror("CPU #0 - PC %04X: unknown flipscreen bits: %02X\n",cpu_get_pc(space->cpu),data);
|
//if (data & ~0x01) logerror("CPU #0 - PC %04X: unknown flipscreen bits: %02X\n",cpu_get_pc(space->cpu),data);
|
||||||
}
|
}
|
||||||
|
|
||||||
static WRITE8_HANDLER( sparkman_leds_w )
|
static WRITE8_HANDLER( sparkman_leds_w )
|
||||||
{
|
{
|
||||||
set_led_status(space->machine, 0, data & 0x01);
|
set_led_status(space->machine, 0, data & 0x01);
|
||||||
set_led_status(space->machine, 1, data & 0x02);
|
set_led_status(space->machine, 1, data & 0x02);
|
||||||
//if (data & ~0x03) logerror("CPU#0 - PC %06X: unknown leds bits: %02X\n",cpu_get_pc(space->cpu),data);
|
//if (data & ~0x03) logerror("CPU#0 - PC %06X: unknown leds bits: %02X\n",cpu_get_pc(space->cpu),data);
|
||||||
}
|
}
|
||||||
|
|
||||||
static WRITE8_HANDLER( sparkman_coin_counter_w )
|
static WRITE8_HANDLER( sparkman_coin_counter_w )
|
||||||
@ -904,7 +904,7 @@ static WRITE8_HANDLER( sparkman_spritebank_w )
|
|||||||
suna8_spritebank = 0;
|
suna8_spritebank = 0;
|
||||||
else
|
else
|
||||||
suna8_spritebank = (data) & 1;
|
suna8_spritebank = (data) & 1;
|
||||||
//if (data & ~0x02) logerror("CPU #0 - PC %04X: unknown spritebank bits: %02X\n",cpu_get_pc(space->cpu),data);
|
//if (data & ~0x02) logerror("CPU #0 - PC %04X: unknown spritebank bits: %02X\n",cpu_get_pc(space->cpu),data);
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
@ -915,7 +915,7 @@ static WRITE8_HANDLER( sparkman_rombank_w )
|
|||||||
{
|
{
|
||||||
int bank = data & 0x0f;
|
int bank = data & 0x0f;
|
||||||
|
|
||||||
//if (data & ~0x0f) logerror("CPU #0 - PC %04X: unknown rom bank bits: %02X\n",cpu_get_pc(space->cpu),data);
|
//if (data & ~0x0f) logerror("CPU #0 - PC %04X: unknown rom bank bits: %02X\n",cpu_get_pc(space->cpu),data);
|
||||||
|
|
||||||
memory_set_bank(space->machine, "bank1", bank);
|
memory_set_bank(space->machine, "bank1", bank);
|
||||||
suna8_rombank = data;
|
suna8_rombank = data;
|
||||||
|
@ -682,31 +682,31 @@ void leland_init_eeprom(running_machine *machine, UINT8 default_val, const UINT1
|
|||||||
UINT32 serial;
|
UINT32 serial;
|
||||||
|
|
||||||
/*
|
/*
|
||||||
NOTE: This code is just illustrative, and explains how to generate the
|
NOTE: This code is just illustrative, and explains how to generate the
|
||||||
serial numbers for the classic Leland games. We currently load default
|
serial numbers for the classic Leland games. We currently load default
|
||||||
EEPROM data from the ROMs rather than generating it.
|
EEPROM data from the ROMs rather than generating it.
|
||||||
|
|
||||||
Here are the input parameters for various games:
|
Here are the input parameters for various games:
|
||||||
|
|
||||||
game default_val serial_offset serial_type
|
game default_val serial_offset serial_type
|
||||||
cerberus 0x00 0 SERIAL_TYPE_NONE
|
cerberus 0x00 0 SERIAL_TYPE_NONE
|
||||||
mayhem 0x00 0x28 SERIAL_TYPE_ADD
|
mayhem 0x00 0x28 SERIAL_TYPE_ADD
|
||||||
powrplay 0xff 0x2d SERIAL_TYPE_ADD_XOR
|
powrplay 0xff 0x2d SERIAL_TYPE_ADD_XOR
|
||||||
wseries 0xff 0x12 SERIAL_TYPE_ENCRYPT_XOR
|
wseries 0xff 0x12 SERIAL_TYPE_ENCRYPT_XOR
|
||||||
alleymas 0xff 0x0c SERIAL_TYPE_ENCRYPT_XOR
|
alleymas 0xff 0x0c SERIAL_TYPE_ENCRYPT_XOR
|
||||||
upyoural 0xff 0x0c SERIAL_TYPE_ENCRYPT_XOR
|
upyoural 0xff 0x0c SERIAL_TYPE_ENCRYPT_XOR
|
||||||
dangerz 0xff 0x10 SERIAL_TYPE_ENCRYPT_XOR
|
dangerz 0xff 0x10 SERIAL_TYPE_ENCRYPT_XOR
|
||||||
basebal2 0xff 0x12 SERIAL_TYPE_ENCRYPT_XOR
|
basebal2 0xff 0x12 SERIAL_TYPE_ENCRYPT_XOR
|
||||||
dblplay 0xff 0x11 SERIAL_TYPE_ENCRYPT_XOR
|
dblplay 0xff 0x11 SERIAL_TYPE_ENCRYPT_XOR
|
||||||
strkzone 0xff 0x0f SERIAL_TYPE_ENCRYPT_XOR
|
strkzone 0xff 0x0f SERIAL_TYPE_ENCRYPT_XOR
|
||||||
redlin2p 0xff 0x18 SERIAL_TYPE_ENCRYPT_XOR
|
redlin2p 0xff 0x18 SERIAL_TYPE_ENCRYPT_XOR
|
||||||
quarterb 0xff 0x24 SERIAL_TYPE_ENCRYPT_XOR
|
quarterb 0xff 0x24 SERIAL_TYPE_ENCRYPT_XOR
|
||||||
viper 0xff 0x0c SERIAL_TYPE_ENCRYPT_XOR
|
viper 0xff 0x0c SERIAL_TYPE_ENCRYPT_XOR
|
||||||
teamqb 0xff 0x1a SERIAL_TYPE_ENCRYPT_XOR
|
teamqb 0xff 0x1a SERIAL_TYPE_ENCRYPT_XOR
|
||||||
aafb 0xff 0x1a SERIAL_TYPE_ENCRYPT_XOR
|
aafb 0xff 0x1a SERIAL_TYPE_ENCRYPT_XOR
|
||||||
offroad 0xff 0x00 SERIAL_TYPE_ENCRYPT_XOR
|
offroad 0xff 0x00 SERIAL_TYPE_ENCRYPT_XOR
|
||||||
pigout 0xff 0x00 SERIAL_TYPE_ENCRYPT
|
pigout 0xff 0x00 SERIAL_TYPE_ENCRYPT
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/* initialize everything to the default value */
|
/* initialize everything to the default value */
|
||||||
memset(eeprom_data, default_val, sizeof(eeprom_data));
|
memset(eeprom_data, default_val, sizeof(eeprom_data));
|
||||||
@ -794,10 +794,10 @@ void ataxx_init_eeprom(running_machine *machine, const UINT16 *data)
|
|||||||
UINT32 serial;
|
UINT32 serial;
|
||||||
|
|
||||||
/*
|
/*
|
||||||
NOTE: This code is just illustrative, and explains how to generate the
|
NOTE: This code is just illustrative, and explains how to generate the
|
||||||
serial numbers for the classic Leland games. We currently load default
|
serial numbers for the classic Leland games. We currently load default
|
||||||
EEPROM data from the ROMs rather than generating it.
|
EEPROM data from the ROMs rather than generating it.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/* initialize everything to the default value */
|
/* initialize everything to the default value */
|
||||||
memset(eeprom_data, default_val, sizeof(eeprom_data));
|
memset(eeprom_data, default_val, sizeof(eeprom_data));
|
||||||
|
@ -463,7 +463,7 @@ READ8_DEVICE_HANDLER( namcoio_r )
|
|||||||
namcoio_state *namcoio = get_safe_token(device);
|
namcoio_state *namcoio = get_safe_token(device);
|
||||||
offset &= 0x3f;
|
offset &= 0x3f;
|
||||||
|
|
||||||
// LOG(("%04x: I/O read: mode %d, offset %d = %02x\n", cpu_get_pc(space->cpu), offset / 16, namcoio_ram[(offset & 0x30) + 8], offset & 0x0f, namcoio_ram[offset]&0x0f));
|
// LOG(("%04x: I/O read: mode %d, offset %d = %02x\n", cpu_get_pc(space->cpu), offset / 16, namcoio_ram[(offset & 0x30) + 8], offset & 0x0f, namcoio_ram[offset]&0x0f));
|
||||||
|
|
||||||
return 0xf0 | namcoio->ram[offset];
|
return 0xf0 | namcoio->ram[offset];
|
||||||
}
|
}
|
||||||
@ -474,7 +474,7 @@ WRITE8_DEVICE_HANDLER( namcoio_w )
|
|||||||
offset &= 0x3f;
|
offset &= 0x3f;
|
||||||
data &= 0x0f; // RAM is 4-bit wide
|
data &= 0x0f; // RAM is 4-bit wide
|
||||||
|
|
||||||
// LOG(("%04x: I/O write %d: offset %d = %02x\n", cpu_get_pc(space->cpu), offset / 16, offset & 0x0f, data));
|
// LOG(("%04x: I/O write %d: offset %d = %02x\n", cpu_get_pc(space->cpu), offset / 16, offset & 0x0f, data));
|
||||||
|
|
||||||
namcoio->ram[offset] = data;
|
namcoio->ram[offset] = data;
|
||||||
}
|
}
|
||||||
|
@ -561,15 +561,15 @@ static void cyclemb_8741_w(const address_space *space, int num, int offset, int
|
|||||||
break;
|
break;
|
||||||
case 1:
|
case 1:
|
||||||
/*
|
/*
|
||||||
status codes:
|
status codes:
|
||||||
0x06 sub NG IOX2
|
0x06 sub NG IOX2
|
||||||
0x05 sub NG IOX1
|
0x05 sub NG IOX1
|
||||||
0x04 sub NG CIOS
|
0x04 sub NG CIOS
|
||||||
0x03 sub NG OPN
|
0x03 sub NG OPN
|
||||||
0x02 sub NG ROM
|
0x02 sub NG ROM
|
||||||
0x01 sub NG RAM
|
0x01 sub NG RAM
|
||||||
0x00 ok
|
0x00 ok
|
||||||
*/
|
*/
|
||||||
cyclemb_mcu.rxd = 0x40;
|
cyclemb_mcu.rxd = 0x40;
|
||||||
cyclemb_mcu.rst = 0;
|
cyclemb_mcu.rst = 0;
|
||||||
break;
|
break;
|
||||||
|
@ -2256,8 +2256,8 @@ void recoverPolygonBlock(running_machine* machine, const UINT16* packet, struct
|
|||||||
// uToF(threeDPointer[29]) - vertex #4 - System not capable yet
|
// uToF(threeDPointer[29]) - vertex #4 - System not capable yet
|
||||||
|
|
||||||
// threeDPointer[30]?
|
// threeDPointer[30]?
|
||||||
//polys[*numPolys].vert[2].texCoords[0] = uToF(threeDPointer[31]); // System not capable yet
|
//polys[*numPolys].vert[2].texCoords[0] = uToF(threeDPointer[31]); // System not capable yet
|
||||||
//polys[*numPolys].vert[2].texCoords[1] = uToF(threeDPointer[32]); // System not capable yet
|
//polys[*numPolys].vert[2].texCoords[1] = uToF(threeDPointer[32]); // System not capable yet
|
||||||
//polys[*numPolys].vert[2].texCoords[2] = 0.0f;
|
//polys[*numPolys].vert[2].texCoords[2] = 0.0f;
|
||||||
//polys[*numPolys].vert[2].texCoords[3] = 1.0f;
|
//polys[*numPolys].vert[2].texCoords[3] = 1.0f;
|
||||||
|
|
||||||
@ -2269,14 +2269,14 @@ void recoverPolygonBlock(running_machine* machine, const UINT16* packet, struct
|
|||||||
|
|
||||||
/* There's something fishy about this guy - see 0x7a below. Very likely not fixed-length */
|
/* There's something fishy about this guy - see 0x7a below. Very likely not fixed-length */
|
||||||
/*
|
/*
|
||||||
printf("0x2e : %08x (%d/%d)\n", address[k]*3*2, l, size[k]-1);
|
printf("0x2e : %08x (%d/%d)\n", address[k]*3*2, l, size[k]-1);
|
||||||
for (m = 0; m < 37; m++)
|
for (m = 0; m < 37; m++)
|
||||||
printf("%04x ", threeDPointer[m]);
|
printf("%04x ", threeDPointer[m]);
|
||||||
printf("\n");
|
printf("\n");
|
||||||
for (m = 0; m < 37; m++)
|
for (m = 0; m < 37; m++)
|
||||||
printf("%3.4f ", uToF(threeDPointer[m]));
|
printf("%3.4f ", uToF(threeDPointer[m]));
|
||||||
printf("\n\n");
|
printf("\n\n");
|
||||||
*/
|
*/
|
||||||
chunkLength = 36;
|
chunkLength = 36;
|
||||||
break;
|
break;
|
||||||
|
|
||||||
@ -2289,7 +2289,7 @@ void recoverPolygonBlock(running_machine* machine, const UINT16* packet, struct
|
|||||||
/*
|
/*
|
||||||
printf("0x7a : %08x (%d/%d)\n", mame_rand(machine), l, size[k]-1);
|
printf("0x7a : %08x (%d/%d)\n", mame_rand(machine), l, size[k]-1);
|
||||||
for (m = 0; m < 100; m++)
|
for (m = 0; m < 100; m++)
|
||||||
printf("%04x ", threeDPointer[m]);
|
printf("%04x ", threeDPointer[m]);
|
||||||
printf("\n\n");
|
printf("\n\n");
|
||||||
*/
|
*/
|
||||||
chunkLength = 0;
|
chunkLength = 0;
|
||||||
|
@ -7668,12 +7668,12 @@ int k056832_read_register( const device_config *device, int regnum )
|
|||||||
|
|
||||||
static STATE_POSTLOAD( k056832_postload )
|
static STATE_POSTLOAD( k056832_postload )
|
||||||
{
|
{
|
||||||
// k056832_state *k056832 = (k056832_state *)param;
|
// k056832_state *k056832 = (k056832_state *)param;
|
||||||
|
|
||||||
// still in progress...
|
// still in progress...
|
||||||
// k056832_update_page_layout(device);
|
// k056832_update_page_layout(device);
|
||||||
// k056832_change_rambank(device);
|
// k056832_change_rambank(device);
|
||||||
// k056832_change_rombank(device);
|
// k056832_change_rombank(device);
|
||||||
}
|
}
|
||||||
|
|
||||||
/*****************************************************************************
|
/*****************************************************************************
|
||||||
@ -10286,7 +10286,7 @@ void k001604_draw_front_layer( const device_config *device, bitmap_t *bitmap, co
|
|||||||
|
|
||||||
READ32_DEVICE_HANDLER( k001604_tile_r )
|
READ32_DEVICE_HANDLER( k001604_tile_r )
|
||||||
{
|
{
|
||||||
// int chip = get_cgboard_id();
|
// int chip = get_cgboard_id();
|
||||||
k001604_state *k001604 = k001604_get_safe_token(device);
|
k001604_state *k001604 = k001604_get_safe_token(device);
|
||||||
|
|
||||||
return k001604->tile_ram[offset];
|
return k001604->tile_ram[offset];
|
||||||
@ -10294,7 +10294,7 @@ READ32_DEVICE_HANDLER( k001604_tile_r )
|
|||||||
|
|
||||||
READ32_DEVICE_HANDLER( k001604_char_r )
|
READ32_DEVICE_HANDLER( k001604_char_r )
|
||||||
{
|
{
|
||||||
// int chip = get_cgboard_id();
|
// int chip = get_cgboard_id();
|
||||||
k001604_state *k001604 = k001604_get_safe_token(device);
|
k001604_state *k001604 = k001604_get_safe_token(device);
|
||||||
|
|
||||||
int set, bank;
|
int set, bank;
|
||||||
@ -10314,7 +10314,7 @@ READ32_DEVICE_HANDLER( k001604_char_r )
|
|||||||
|
|
||||||
WRITE32_DEVICE_HANDLER( k001604_tile_w )
|
WRITE32_DEVICE_HANDLER( k001604_tile_w )
|
||||||
{
|
{
|
||||||
// int chip = get_cgboard_id();
|
// int chip = get_cgboard_id();
|
||||||
k001604_state *k001604 = k001604_get_safe_token(device);
|
k001604_state *k001604 = k001604_get_safe_token(device);
|
||||||
|
|
||||||
int x, y;
|
int x, y;
|
||||||
@ -10367,7 +10367,7 @@ WRITE32_DEVICE_HANDLER( k001604_tile_w )
|
|||||||
|
|
||||||
WRITE32_DEVICE_HANDLER( k001604_char_w )
|
WRITE32_DEVICE_HANDLER( k001604_char_w )
|
||||||
{
|
{
|
||||||
// int chip = get_cgboard_id();
|
// int chip = get_cgboard_id();
|
||||||
k001604_state *k001604 = k001604_get_safe_token(device);
|
k001604_state *k001604 = k001604_get_safe_token(device);
|
||||||
|
|
||||||
int set, bank;
|
int set, bank;
|
||||||
@ -10390,7 +10390,7 @@ WRITE32_DEVICE_HANDLER( k001604_char_w )
|
|||||||
|
|
||||||
WRITE32_DEVICE_HANDLER( k001604_reg_w )
|
WRITE32_DEVICE_HANDLER( k001604_reg_w )
|
||||||
{
|
{
|
||||||
// int chip = get_cgboard_id();
|
// int chip = get_cgboard_id();
|
||||||
k001604_state *k001604 = k001604_get_safe_token(device);
|
k001604_state *k001604 = k001604_get_safe_token(device);
|
||||||
|
|
||||||
COMBINE_DATA(k001604->reg + offset);
|
COMBINE_DATA(k001604->reg + offset);
|
||||||
@ -10412,7 +10412,7 @@ WRITE32_DEVICE_HANDLER( k001604_reg_w )
|
|||||||
|
|
||||||
READ32_DEVICE_HANDLER( k001604_reg_r )
|
READ32_DEVICE_HANDLER( k001604_reg_r )
|
||||||
{
|
{
|
||||||
// int chip = get_cgboard_id();
|
// int chip = get_cgboard_id();
|
||||||
k001604_state *k001604 = k001604_get_safe_token(device);
|
k001604_state *k001604 = k001604_get_safe_token(device);
|
||||||
|
|
||||||
switch (offset)
|
switch (offset)
|
||||||
@ -10613,7 +10613,7 @@ static void update_palette_color( const device_config *device, UINT32 palette_ba
|
|||||||
|
|
||||||
READ32_DEVICE_HANDLER( k037122_sram_r )
|
READ32_DEVICE_HANDLER( k037122_sram_r )
|
||||||
{
|
{
|
||||||
// int chip = get_cgboard_id();
|
// int chip = get_cgboard_id();
|
||||||
k037122_state *k037122 = k037122_get_safe_token(device);
|
k037122_state *k037122 = k037122_get_safe_token(device);
|
||||||
|
|
||||||
return k037122->tile_ram[offset];
|
return k037122->tile_ram[offset];
|
||||||
@ -10621,7 +10621,7 @@ READ32_DEVICE_HANDLER( k037122_sram_r )
|
|||||||
|
|
||||||
WRITE32_DEVICE_HANDLER( k037122_sram_w )
|
WRITE32_DEVICE_HANDLER( k037122_sram_w )
|
||||||
{
|
{
|
||||||
// int chip = get_cgboard_id();
|
// int chip = get_cgboard_id();
|
||||||
k037122_state *k037122 = k037122_get_safe_token(device);
|
k037122_state *k037122 = k037122_get_safe_token(device);
|
||||||
|
|
||||||
COMBINE_DATA(k037122->tile_ram + offset);
|
COMBINE_DATA(k037122->tile_ram + offset);
|
||||||
@ -10661,7 +10661,7 @@ WRITE32_DEVICE_HANDLER( k037122_sram_w )
|
|||||||
|
|
||||||
READ32_DEVICE_HANDLER( k037122_char_r )
|
READ32_DEVICE_HANDLER( k037122_char_r )
|
||||||
{
|
{
|
||||||
// int chip = get_cgboard_id();
|
// int chip = get_cgboard_id();
|
||||||
k037122_state *k037122 = k037122_get_safe_token(device);
|
k037122_state *k037122 = k037122_get_safe_token(device);
|
||||||
int bank = k037122->reg[0x30 / 4] & 0x7;
|
int bank = k037122->reg[0x30 / 4] & 0x7;
|
||||||
|
|
||||||
@ -10670,7 +10670,7 @@ READ32_DEVICE_HANDLER( k037122_char_r )
|
|||||||
|
|
||||||
WRITE32_DEVICE_HANDLER( k037122_char_w )
|
WRITE32_DEVICE_HANDLER( k037122_char_w )
|
||||||
{
|
{
|
||||||
// int chip = get_cgboard_id();
|
// int chip = get_cgboard_id();
|
||||||
k037122_state *k037122 = k037122_get_safe_token(device);
|
k037122_state *k037122 = k037122_get_safe_token(device);
|
||||||
int bank = k037122->reg[0x30 / 4] & 0x7;
|
int bank = k037122->reg[0x30 / 4] & 0x7;
|
||||||
UINT32 addr = offset + (bank * (0x40000/4));
|
UINT32 addr = offset + (bank * (0x40000/4));
|
||||||
@ -10681,7 +10681,7 @@ WRITE32_DEVICE_HANDLER( k037122_char_w )
|
|||||||
|
|
||||||
READ32_DEVICE_HANDLER( k037122_reg_r )
|
READ32_DEVICE_HANDLER( k037122_reg_r )
|
||||||
{
|
{
|
||||||
// int chip = get_cgboard_id();
|
// int chip = get_cgboard_id();
|
||||||
k037122_state *k037122 = k037122_get_safe_token(device);
|
k037122_state *k037122 = k037122_get_safe_token(device);
|
||||||
|
|
||||||
switch (offset)
|
switch (offset)
|
||||||
@ -10696,7 +10696,7 @@ READ32_DEVICE_HANDLER( k037122_reg_r )
|
|||||||
|
|
||||||
WRITE32_DEVICE_HANDLER( k037122_reg_w )
|
WRITE32_DEVICE_HANDLER( k037122_reg_w )
|
||||||
{
|
{
|
||||||
// int chip = get_cgboard_id();
|
// int chip = get_cgboard_id();
|
||||||
k037122_state *k037122 = k037122_get_safe_token(device);
|
k037122_state *k037122 = k037122_get_safe_token(device);
|
||||||
|
|
||||||
COMBINE_DATA(k037122->reg + offset);
|
COMBINE_DATA(k037122->reg + offset);
|
||||||
|
@ -5105,11 +5105,11 @@ static DEVICE_START( tc0180vcu )
|
|||||||
state_save_register_device_item(device, 0, tc0180vcu->video_control);
|
state_save_register_device_item(device, 0, tc0180vcu->video_control);
|
||||||
state_save_register_device_item_array(device, 0, tc0180vcu->ctrl);
|
state_save_register_device_item_array(device, 0, tc0180vcu->ctrl);
|
||||||
|
|
||||||
// tc0180vcu->ram = auto_alloc_array_clear(device->machine, UINT16, PC090OJ_RAM_SIZE / 2);
|
// tc0180vcu->ram = auto_alloc_array_clear(device->machine, UINT16, PC090OJ_RAM_SIZE / 2);
|
||||||
// tc0180vcu->scrollram = auto_alloc_array_clear(device->machine, UINT16, PC090OJ_RAM_SIZE / 2);
|
// tc0180vcu->scrollram = auto_alloc_array_clear(device->machine, UINT16, PC090OJ_RAM_SIZE / 2);
|
||||||
|
|
||||||
// state_save_register_device_item_pointer(device, 0, tc0180vcu->ram, PC090OJ_RAM_SIZE / 2);
|
// state_save_register_device_item_pointer(device, 0, tc0180vcu->ram, PC090OJ_RAM_SIZE / 2);
|
||||||
// state_save_register_device_item_pointer(device, 0, tc0180vcu->scrollram, PC090OJ_RAM_SIZE / 2);
|
// state_save_register_device_item_pointer(device, 0, tc0180vcu->scrollram, PC090OJ_RAM_SIZE / 2);
|
||||||
}
|
}
|
||||||
|
|
||||||
static DEVICE_RESET( tc0180vcu )
|
static DEVICE_RESET( tc0180vcu )
|
||||||
|
Loading…
Reference in New Issue
Block a user