diff options
Diffstat (limited to 'src/mame/drivers/m72.c')
-rw-r--r-- | src/mame/drivers/m72.c | 38 |
1 files changed, 19 insertions, 19 deletions
diff --git a/src/mame/drivers/m72.c b/src/mame/drivers/m72.c index 5a441775988..73c1cade25d 100644 --- a/src/mame/drivers/m72.c +++ b/src/mame/drivers/m72.c @@ -234,7 +234,7 @@ running, but they have not been derived from the real 8751 code. #define CRC_LEN 18 /* Battle Chopper / Mr. Heli */ -static UINT8 bchopper_code[CODE_LEN] = +static const UINT8 bchopper_code[CODE_LEN] = { 0x68,0x00,0xa0, // push 0a000h 0x1f, // pop ds @@ -258,13 +258,13 @@ static UINT8 bchopper_code[CODE_LEN] = 0xc6,0x06,0x70,0x16,0x77, // mov [1670h], byte 077h 0xea,0x68,0x01,0x40,0x00 // jmp 0040:$0168 }; -static UINT8 bchopper_crc[CRC_LEN] = { 0x1a,0x12,0x5c,0x08, 0x84,0xb6,0x73,0xd1, +static const UINT8 bchopper_crc[CRC_LEN] = { 0x1a,0x12,0x5c,0x08, 0x84,0xb6,0x73,0xd1, 0x54,0x91,0x94,0xeb, 0x00,0x00 }; -static UINT8 mrheli_crc[CRC_LEN] = { 0x24,0x21,0x1f,0x14, 0xf9,0x28,0xfb,0x47, +static const UINT8 mrheli_crc[CRC_LEN] = { 0x24,0x21,0x1f,0x14, 0xf9,0x28,0xfb,0x47, 0x4c,0x77,0x9e,0xc2, 0x00,0x00 }; /* Ninja Spirit */ -static UINT8 nspirit_code[CODE_LEN] = +static const UINT8 nspirit_code[CODE_LEN] = { 0x68,0x00,0xa0, // push 0a000h 0x1f, // pop ds @@ -288,13 +288,13 @@ static UINT8 nspirit_code[CODE_LEN] = 0xc6,0x06,0x71,0x16,0x00, // mov [1671h], byte 000h 0xea,0x00,0x00,0x40,0x00 // jmp 0040:$0000 }; -static UINT8 nspirit_crc[CRC_LEN] = { 0xfe,0x94,0x6e,0x4e, 0xc8,0x33,0xa7,0x2d, +static const UINT8 nspirit_crc[CRC_LEN] = { 0xfe,0x94,0x6e,0x4e, 0xc8,0x33,0xa7,0x2d, 0xf2,0xa3,0xf9,0xe1, 0xa9,0x6c,0x02,0x95, 0x00,0x00 }; -static UINT8 nspiritj_crc[CRC_LEN] = { 0x26,0xa3,0xa5,0xe9, 0xc8,0x33,0xa7,0x2d, +static const UINT8 nspiritj_crc[CRC_LEN] = { 0x26,0xa3,0xa5,0xe9, 0xc8,0x33,0xa7,0x2d, 0xf2,0xa3,0xf9,0xe1, 0xbc,0x6c,0x01,0x95, 0x00,0x00 }; /* Image Fight */ -static UINT8 imgfight_code[CODE_LEN] = +static const UINT8 imgfight_code[CODE_LEN] = { 0x68,0x00,0xa0, // push 0a000h 0x1f, // pop ds @@ -321,11 +321,11 @@ static UINT8 imgfight_code[CODE_LEN] = 0xc6,0x06,0xb0,0x1c,0x57, // mov [1cb0h], byte 057h 0xea,0x00,0x00,0x40,0x00 // jmp 0040:$0000 }; -static UINT8 imgfight_crc[CRC_LEN] = { 0x7e,0xcc,0xec,0x03, 0x04,0x33,0xb6,0xc5, +static const UINT8 imgfight_crc[CRC_LEN] = { 0x7e,0xcc,0xec,0x03, 0x04,0x33,0xb6,0xc5, 0xbf,0x37,0x92,0x94, 0x00,0x00 }; /* Legend of Hero Tonma */ -static UINT8 loht_code[CODE_LEN] = +static const UINT8 loht_code[CODE_LEN] = { 0x68,0x00,0xa0, // push 0a000h 0x1f, // pop ds @@ -346,28 +346,28 @@ static UINT8 loht_code[CODE_LEN] = 0xea,0x5d,0x01,0x40,0x00 // jmp 0040:$015d }; -static UINT8 loht_crc[CRC_LEN] = { 0x39,0x00,0x82,0xae, 0x2c,0x9d,0x4b,0x73, +static const UINT8 loht_crc[CRC_LEN] = { 0x39,0x00,0x82,0xae, 0x2c,0x9d,0x4b,0x73, 0xfb,0xac,0xd4,0x6d, 0x6d,0x5b,0x77,0xc0, 0x00,0x00 }; /* service mode crashes at the moment (119u2), so I can't add the CRCs for lohtj */ /* X Multiply */ -static UINT8 xmultipl_code[CODE_LEN] = +static const UINT8 xmultipl_code[CODE_LEN] = { 0xea,0x30,0x02,0x00,0x0e // jmp 0e00:$0230 }; -static UINT8 xmultipl_crc[CRC_LEN] = { 0x73,0x82,0x4e,0x3f, 0xfc,0x56,0x59,0x06, +static const UINT8 xmultipl_crc[CRC_LEN] = { 0x73,0x82,0x4e,0x3f, 0xfc,0x56,0x59,0x06, 0x05,0x48,0xa8,0xf4, 0x00,0x00 }; /* Dragon Breed */ -static UINT8 dbreed72_code[CODE_LEN] = +static const UINT8 dbreed72_code[CODE_LEN] = { 0xea,0x6c,0x00,0x00,0x00 // jmp 0000:$006c }; -static UINT8 dbreed72_crc[CRC_LEN] = { 0xa4,0x96,0x5f,0xc0, 0xab,0x49,0x9f,0x19, +static const UINT8 dbreed72_crc[CRC_LEN] = { 0xa4,0x96,0x5f,0xc0, 0xab,0x49,0x9f,0x19, 0x84,0xe6,0xd6,0xca, 0x00,0x00 }; /* Air Duel */ -static UINT8 airduel_code[CODE_LEN] = +static const UINT8 airduel_code[CODE_LEN] = { 0x68,0x00,0xd0, // push 0d000h 0x1f, // pop ds @@ -377,15 +377,15 @@ static UINT8 airduel_code[CODE_LEN] = 0xc6,0x06,0xc0,0x1c,0x57, // mov [1cc0h], byte 057h 0xea,0x69,0x0b,0x00,0x00 // jmp 0000:$0b69 }; -static UINT8 airduel_crc[CRC_LEN] = { 0x72,0x9c,0xca,0x85, 0xc9,0x12,0xcc,0xea, +static const UINT8 airduel_crc[CRC_LEN] = { 0x72,0x9c,0xca,0x85, 0xc9,0x12,0xcc,0xea, 0x00,0x00 }; /* Daiku no Gensan */ -static UINT8 dkgenm72_code[CODE_LEN] = +static const UINT8 dkgenm72_code[CODE_LEN] = { 0xea,0x3d,0x00,0x00,0x10 // jmp 1000:$003d }; -static UINT8 dkgenm72_crc[CRC_LEN] = { 0xc8,0xb4,0xdc,0xf8, 0xd3,0xba,0x48,0xed, +static const UINT8 dkgenm72_crc[CRC_LEN] = { 0xc8,0xb4,0xdc,0xf8, 0xd3,0xba,0x48,0xed, 0x79,0x08,0x1c,0xb3, 0x00,0x00 }; @@ -416,7 +416,7 @@ static WRITE16_HANDLER( protection_w ) copy_le(&protection_ram[0x0fe0],protection_crc,CRC_LEN); } -static void install_protection_handler(UINT8 *code,UINT8 *crc) +static void install_protection_handler(const UINT8 *code,const UINT8 *crc) { protection_ram = auto_malloc(0x1000); protection_code = code; |