summaryrefslogtreecommitdiffstats
path: root/src/mame/machine/pgmcrypt.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/mame/machine/pgmcrypt.cpp')
-rw-r--r--src/mame/machine/pgmcrypt.cpp198
1 files changed, 99 insertions, 99 deletions
diff --git a/src/mame/machine/pgmcrypt.cpp b/src/mame/machine/pgmcrypt.cpp
index 44a2781fafd..9d38e10ca86 100644
--- a/src/mame/machine/pgmcrypt.cpp
+++ b/src/mame/machine/pgmcrypt.cpp
@@ -65,7 +65,7 @@
#define IGS27_CRYPT8_ALT \
if ((i & 0x000820) == 0x000820) x ^= 0x0080;
-static const UINT8 kov_tab[256] = {
+static const uint8_t kov_tab[256] = {
0x17, 0x1c, 0xe3, 0x02, 0x62, 0x59, 0x97, 0x4a, 0x67, 0x4d, 0x1f, 0x11, 0x76, 0x64, 0xc1, 0xe1,
0xd2, 0x41, 0x9f, 0xfd, 0xfa, 0x04, 0xfe, 0xab, 0x89, 0xeb, 0xc0, 0xf5, 0xac, 0x2b, 0x64, 0x22,
0x90, 0x7d, 0x88, 0xc5, 0x8c, 0xe0, 0xd9, 0x70, 0x3c, 0xf4, 0x7d, 0x31, 0x1c, 0xca, 0xe2, 0xf1,
@@ -87,12 +87,12 @@ static const UINT8 kov_tab[256] = {
void pgm_kov_decrypt(running_machine &machine)
{
int i;
- UINT16 *src = (UINT16 *) (machine.root_device().memregion("maincpu")->base()+0x100000);
+ uint16_t *src = (uint16_t *) (machine.root_device().memregion("maincpu")->base()+0x100000);
int rom_size = 0x400000;
for(i=0; i<rom_size/2; i++) {
- UINT16 x = src[i];
+ uint16_t x = src[i];
IGS27_CRYPT1
IGS27_CRYPT2_ALT
@@ -110,7 +110,7 @@ void pgm_kov_decrypt(running_machine &machine)
}
-static const UINT8 kovsh_tab[256] = {
+static const uint8_t kovsh_tab[256] = {
0xe7, 0x06, 0xa3, 0x70, 0xf2, 0x58, 0xe6, 0x59, 0xe4, 0xcf, 0xc2, 0x79, 0x1d, 0xe3, 0x71, 0x0e,
0xb6, 0x90, 0x9a, 0x2a, 0x8c, 0x41, 0xf7, 0x82, 0x9b, 0xef, 0x99, 0x0c, 0xfa, 0x2f, 0xf1, 0xfe,
0x8f, 0x70, 0xf4, 0xc1, 0xb5, 0x3d, 0x7c, 0x60, 0x4c, 0x09, 0xf4, 0x2e, 0x7c, 0x87, 0x63, 0x5f,
@@ -133,12 +133,12 @@ static const UINT8 kovsh_tab[256] = {
void pgm_kovsh_decrypt(running_machine &machine)
{
int i;
- UINT16 *src = (UINT16 *) (machine.root_device().memregion("maincpu")->base()+0x100000);
+ uint16_t *src = (uint16_t *) (machine.root_device().memregion("maincpu")->base()+0x100000);
int rom_size = 0x400000;
for(i=0; i<rom_size/2; i++) {
- UINT16 x = src[i];
+ uint16_t x = src[i];
IGS27_CRYPT1_ALT
IGS27_CRYPT2_ALT2
@@ -156,7 +156,7 @@ void pgm_kovsh_decrypt(running_machine &machine)
}
-static const UINT8 photoy2k_tab[256] = {
+static const uint8_t photoy2k_tab[256] = {
0xd9, 0x92, 0xb2, 0xbc, 0xa5, 0x88, 0xe3, 0x48, 0x7d, 0xeb, 0xc5, 0x4d, 0x31, 0xe4, 0x82, 0xbc,
0x82, 0xcf, 0xe7, 0xf3, 0x15, 0xde, 0x8f, 0x91, 0xef, 0xc6, 0xb8, 0x81, 0x97, 0xe3, 0xdf, 0x4d,
0x88, 0xbf, 0xe4, 0x05, 0x25, 0x73, 0x1e, 0xd0, 0xcf, 0x1e, 0xeb, 0x4d, 0x18, 0x4e, 0x6f, 0x9f,
@@ -178,12 +178,12 @@ static const UINT8 photoy2k_tab[256] = {
void pgm_photoy2k_decrypt(running_machine &machine)
{
int i;
- UINT16 *src = (UINT16 *) (machine.root_device().memregion("maincpu")->base()+0x100000);
+ uint16_t *src = (uint16_t *) (machine.root_device().memregion("maincpu")->base()+0x100000);
int rom_size = 0x400000;
for(i=0; i<rom_size/2; i++) {
- UINT16 x = src[i];
+ uint16_t x = src[i];
IGS27_CRYPT1_ALT
IGS27_CRYPT2_ALT3
@@ -200,7 +200,7 @@ void pgm_photoy2k_decrypt(running_machine &machine)
}
}
-static const UINT8 pstar[256] = {
+static const uint8_t pstar[256] = {
0x62, 0x59, 0x17, 0xe3, 0xe1, 0x11, 0x02, 0x97, 0x67, 0x4d, 0x4a, 0x1c, 0x1f, 0x76, 0x64, 0xc1,
0xfa, 0x04, 0xd2, 0x9f, 0x22, 0xf5, 0xfd, 0xfe, 0x89, 0xeb, 0xab, 0x41, 0xc0, 0xac, 0x2b, 0x64,
0xfe, 0x1e, 0x9b, 0x68, 0x07, 0xfd, 0x75, 0x25, 0x24, 0xa0, 0x41, 0x5d, 0x79, 0xb5, 0x67, 0x93,
@@ -222,12 +222,12 @@ static const UINT8 pstar[256] = {
void pgm_pstar_decrypt(running_machine &machine)
{
int i;
- UINT16 *src = (UINT16 *) (machine.root_device().memregion("maincpu")->base()+0x100000);
+ uint16_t *src = (uint16_t *) (machine.root_device().memregion("maincpu")->base()+0x100000);
int rom_size = 0x100000;
for(i=0; i<rom_size/2; i++) {
- UINT16 x = src[i];
+ uint16_t x = src[i];
IGS27_CRYPT1
IGS27_CRYPT3_ALT2
@@ -242,7 +242,7 @@ void pgm_pstar_decrypt(running_machine &machine)
}
}
-static const UINT8 dfront_tab[256] = {
+static const uint8_t dfront_tab[256] = {
0x51, 0xc4, 0xe3, 0x10, 0x1c, 0xad, 0x8a, 0x39, 0x8c, 0xe0, 0xa5, 0x04, 0x0f, 0xe4, 0x35, 0xc3,
0x2d, 0x6b, 0x32, 0xe2, 0x60, 0x54, 0x63, 0x06, 0xa3, 0xf1, 0x0b, 0x5f, 0x6c, 0x5c, 0xb3, 0xec,
0x77, 0x61, 0x69, 0xe7, 0x3c, 0xb7, 0x42, 0x72, 0x1a, 0x70, 0xb0, 0x96, 0xa4, 0x28, 0xc0, 0xfb,
@@ -264,12 +264,12 @@ static const UINT8 dfront_tab[256] = {
void pgm_dfront_decrypt(running_machine &machine)
{
int i;
- UINT16 *src = (UINT16 *)(machine.root_device().memregion("user1")->base());
+ uint16_t *src = (uint16_t *)(machine.root_device().memregion("user1")->base());
int rom_size = 0x400000;
for(i=0; i<rom_size/2; i++) {
- UINT16 x = src[i];
+ uint16_t x = src[i];
IGS27_CRYPT1_ALT
IGS27_CRYPT2
@@ -287,7 +287,7 @@ void pgm_dfront_decrypt(running_machine &machine)
}
-static const UINT8 ddp2_tab[256] = {
+static const uint8_t ddp2_tab[256] = {
0x2a, 0x4a, 0x39, 0x98, 0xac, 0x39, 0xb2, 0x55, 0x72, 0xf3, 0x7b, 0x3c, 0xee, 0x94, 0x6e, 0xd5,
0xcd, 0xbc, 0x9a, 0xd0, 0x45, 0x7d, 0x49, 0x68, 0xb1, 0x61, 0x54, 0xef, 0xa2, 0x84, 0x29, 0x20,
0x32, 0x52, 0x82, 0x04, 0x38, 0x69, 0x9f, 0x24, 0x46, 0xf4, 0x3f, 0xc2, 0xf1, 0x25, 0xac, 0x2d,
@@ -309,12 +309,12 @@ static const UINT8 ddp2_tab[256] = {
void pgm_ddp2_decrypt(running_machine &machine)
{
int i;
- UINT16 *src = (UINT16 *)(machine.root_device().memregion("user1")->base());
+ uint16_t *src = (uint16_t *)(machine.root_device().memregion("user1")->base());
int rom_size = 0x200000;
for(i=0; i<rom_size/2; i++) {
- UINT16 x = src[i];
+ uint16_t x = src[i];
IGS27_CRYPT1_ALT2
// NO CRYPT2
@@ -332,7 +332,7 @@ void pgm_ddp2_decrypt(running_machine &machine)
}
-static const UINT8 mm_tab[256] = {
+static const uint8_t mm_tab[256] = {
0xd0, 0x45, 0xbc, 0x84, 0x93, 0x60, 0x7d, 0x49, 0x68, 0xb1, 0x54, 0xa2, 0x05, 0x29, 0x41, 0x20,
0x04, 0x08, 0x52, 0x25, 0x89, 0xf4, 0x69, 0x9f, 0x24, 0x46, 0x3d, 0xf1, 0xf9, 0xab, 0xa6, 0x2d,
0x18, 0x19, 0x6d, 0x33, 0x79, 0x23, 0x3b, 0x1d, 0xe0, 0xb8, 0x61, 0x1a, 0xe1, 0x4c, 0x5d, 0x3f,
@@ -354,12 +354,12 @@ static const UINT8 mm_tab[256] = {
void pgm_mm_decrypt(running_machine &machine) // and dw2001
{
int i;
- UINT16 *src = (UINT16 *)(machine.root_device().memregion("user1")->base());
+ uint16_t *src = (uint16_t *)(machine.root_device().memregion("user1")->base());
int rom_size = 0x200000;
for(i=0; i<rom_size/2; i++) {
- UINT16 x = src[i];
+ uint16_t x = src[i];
IGS27_CRYPT1
IGS27_CRYPT2_ALT
@@ -376,7 +376,7 @@ void pgm_mm_decrypt(running_machine &machine) // and dw2001
}
}
-static const UINT8 kov2_tab[256] = {
+static const uint8_t kov2_tab[256] = {
0x11, 0x4a, 0x38, 0x98, 0xac, 0x39, 0xb2, 0x55, 0x72, 0xf3, 0x7b, 0x3c, 0xee, 0x94, 0x6e, 0xd5,
0x41, 0xbc, 0x93, 0xd0, 0x45, 0x7d, 0x49, 0x68, 0xb1, 0x60, 0x54, 0xef, 0xa2, 0x84, 0x29, 0x20,
0xa6, 0x52, 0x89, 0x04, 0x08, 0x69, 0x9f, 0x24, 0x46, 0xf4, 0x3d, 0xc3, 0xf1, 0x25, 0xab, 0x2d,
@@ -398,12 +398,12 @@ static const UINT8 kov2_tab[256] = {
void pgm_kov2_decrypt(running_machine &machine)
{
int i;
- UINT16 *src = (UINT16 *)(machine.root_device().memregion("user1")->base());
+ uint16_t *src = (uint16_t *)(machine.root_device().memregion("user1")->base());
int rom_size = 0x200000;
for(i=0; i<rom_size/2; i++) {
- UINT16 x = src[i];
+ uint16_t x = src[i];
IGS27_CRYPT1_ALT
// NO CRYPT2
@@ -420,7 +420,7 @@ void pgm_kov2_decrypt(running_machine &machine)
}
}
-static const UINT8 kov2p_tab[256] = {
+static const uint8_t kov2p_tab[256] = {
0x44, 0x47, 0xb8, 0x28, 0x03, 0xa2, 0x21, 0xbc, 0x17, 0x32, 0x4e, 0xe2, 0xdf, 0x69, 0x35, 0xc7,
0xa2, 0x06, 0xec, 0x36, 0xd2, 0x44, 0x12, 0x6a, 0x8d, 0x51, 0x6b, 0x20, 0x69, 0x01, 0xca, 0xf0,
0x71, 0xc4, 0x34, 0xdc, 0x6b, 0xd6, 0x42, 0x2a, 0x5d, 0xb5, 0xc7, 0x6f, 0x4f, 0xd8, 0xb3, 0xed,
@@ -442,12 +442,12 @@ static const UINT8 kov2p_tab[256] = {
void pgm_kov2p_decrypt(running_machine &machine)
{
int i;
- UINT16 *src = (UINT16 *)(machine.root_device().memregion("user1")->base());
+ uint16_t *src = (uint16_t *)(machine.root_device().memregion("user1")->base());
int rom_size = 0x200000;
for(i=0; i<rom_size/2; i++) {
- UINT16 x = src[i];
+ uint16_t x = src[i];
IGS27_CRYPT1_ALT
IGS27_CRYPT2_ALT
@@ -464,7 +464,7 @@ void pgm_kov2p_decrypt(running_machine &machine)
}
}
-static const UINT8 puzzli2_tab[256] = {
+static const uint8_t puzzli2_tab[256] = {
0xb7, 0x66, 0xa3, 0xc0, 0x51, 0x55, 0x6d, 0x63, 0x86, 0x60, 0x64, 0x6c, 0x67, 0x18, 0x0b, 0x05,
0x62, 0xff, 0xe0, 0x1e, 0x30, 0x21, 0x2e, 0x40, 0x41, 0xb9, 0x60, 0x38, 0xd1, 0x24, 0x7e, 0x36,
0x7a, 0x0b, 0x1c, 0x69, 0x4f, 0x09, 0xe1, 0x9e, 0xcf, 0xcd, 0x7c, 0x00, 0x73, 0x08, 0x77, 0x37,
@@ -486,12 +486,12 @@ static const UINT8 puzzli2_tab[256] = {
void pgm_puzzli2_decrypt(running_machine &machine)
{
int i;
- UINT16 *src = (UINT16 *) (machine.root_device().memregion("maincpu")->base()+0x100000);
+ uint16_t *src = (uint16_t *) (machine.root_device().memregion("maincpu")->base()+0x100000);
int rom_size = 0x100000;
for(i=0; i<rom_size/2; i++) {
- UINT16 x = src[i];
+ uint16_t x = src[i];
IGS27_CRYPT1_ALT
IGS27_CRYPT2_ALT
@@ -508,7 +508,7 @@ void pgm_puzzli2_decrypt(running_machine &machine)
}
-static const UINT8 theglad_tab[256] = {
+static const uint8_t theglad_tab[256] = {
0x49, 0x47, 0x53, 0x30, 0x30, 0x30, 0x35, 0x52, 0x44, 0x31, 0x30, 0x32, 0x31, 0x32, 0x30, 0x33,
0xC4, 0xA3, 0x46, 0x78, 0x30, 0xB3, 0x8B, 0xD5, 0x2F, 0xC4, 0x44, 0xBF, 0xDB, 0x76, 0xDB, 0xEA,
0xB4, 0xEB, 0x95, 0x4D, 0x15, 0x21, 0x99, 0xA1, 0xD7, 0x8C, 0x40, 0x1D, 0x43, 0xF3, 0x9F, 0x71,
@@ -530,12 +530,12 @@ static const UINT8 theglad_tab[256] = {
void pgm_theglad_decrypt(running_machine &machine)
{
int i;
- UINT16 *src = (UINT16 *)(machine.root_device().memregion("user1")->base());
+ uint16_t *src = (uint16_t *)(machine.root_device().memregion("user1")->base());
int rom_size = 0x200000;
for(i=0; i<rom_size/2; i++) {
- UINT16 x = src[i];
+ uint16_t x = src[i];
IGS27_CRYPT1_ALT
IGS27_CRYPT2
@@ -553,7 +553,7 @@ void pgm_theglad_decrypt(running_machine &machine)
}
-static const UINT8 oldsplus_tab[256] = {
+static const uint8_t oldsplus_tab[256] = {
0x49, 0x47, 0x53, 0x30, 0x30, 0x31, 0x33, 0x52, 0x44, 0x31, 0x30, 0x34, 0x30, 0x37, 0x32, 0x37,
0xF5, 0x79, 0x6D, 0xAB, 0x04, 0x22, 0x51, 0x96, 0xF2, 0x72, 0xE8, 0x3A, 0x96, 0xD2, 0x9A, 0xCC,
0x3F, 0x47, 0x3C, 0x09, 0xF2, 0xD9, 0x72, 0x41, 0xE6, 0x44, 0x43, 0xA7, 0x3E, 0xE2, 0xFD, 0xD8,
@@ -598,7 +598,7 @@ void pgm_oldsplus_decrypt(running_machine &machine)
}
-static const UINT8 kovshp_tab[256] = {
+static const uint8_t kovshp_tab[256] = {
0x49, 0x47, 0x53, 0x30, 0x30, 0x30, 0x39, 0x72, 0x64, 0x31, 0x30, 0x34, 0x30, 0x32, 0x31, 0x39,
0xF9, 0x8C, 0xBD, 0x87, 0x16, 0x07, 0x39, 0xEB, 0x29, 0x9E, 0x17, 0xEF, 0x4F, 0x64, 0x7C, 0xE0,
0x5F, 0x73, 0x5B, 0xA1, 0x5E, 0x95, 0x0D, 0xF1, 0x40, 0x36, 0x2F, 0x00, 0xE2, 0x8A, 0xBC, 0x32,
@@ -643,7 +643,7 @@ void pgm_kovshp_decrypt(running_machine &machine)
}
-static const UINT8 killbldp_tab[256] = {
+static const uint8_t killbldp_tab[256] = {
0x49, 0x47, 0x53, 0x30, 0x30, 0x32, 0x34, 0x52, 0x44, 0x31, 0x30, 0x35, 0x30, 0x39, 0x30, 0x38,
0x12, 0xA0, 0xD1, 0x9E, 0xB1, 0x8A, 0xFB, 0x1F, 0x50, 0x51, 0x4B, 0x81, 0x28, 0xDA, 0x5F, 0x41,
0x78, 0x6C, 0x7A, 0xF0, 0xCD, 0x6B, 0x69, 0x14, 0x94, 0x55, 0xB6, 0x42, 0xDF, 0xFE, 0x10, 0x79,
@@ -665,12 +665,12 @@ static const UINT8 killbldp_tab[256] = {
void pgm_killbldp_decrypt(running_machine &machine)
{
int i;
- UINT16 *src = (UINT16 *)(machine.root_device().memregion("user1")->base());
+ uint16_t *src = (uint16_t *)(machine.root_device().memregion("user1")->base());
int rom_size = 0x200000;
for(i=0; i<rom_size/2; i++) {
- UINT16 x = src[i];
+ uint16_t x = src[i];
IGS27_CRYPT1
IGS27_CRYPT2
@@ -691,12 +691,12 @@ void pgm_killbldp_decrypt(running_machine &machine)
void pgm_svg_decrypt(running_machine &machine)
{
int i;
- UINT16 *src = (UINT16 *)(machine.root_device().memregion("user1")->base());
+ uint16_t *src = (uint16_t *)(machine.root_device().memregion("user1")->base());
int rom_size = 0x800000;
for(i=0; i<rom_size/2; i++) {
- UINT16 x = src[i];
+ uint16_t x = src[i];
IGS27_CRYPT1_ALT
IGS27_CRYPT2_ALT
@@ -733,12 +733,12 @@ static const unsigned char svgpcb_tab[0x100] = {
void pgm_svgpcb_decrypt(running_machine &machine)
{
int i;
- UINT16 *src = (UINT16 *)(machine.root_device().memregion("user1")->base());
+ uint16_t *src = (uint16_t *)(machine.root_device().memregion("user1")->base());
int rom_size = 0x800000;
for (i = 0; i < rom_size/2; i++) {
- UINT16 x = src[i];
+ uint16_t x = src[i];
IGS27_CRYPT1_ALT; // ok?
IGS27_CRYPT2 // ok?
@@ -756,7 +756,7 @@ void pgm_svgpcb_decrypt(running_machine &machine)
}
-static const UINT8 py2k2_tab[256] = {
+static const uint8_t py2k2_tab[256] = {
0x74, 0xe8, 0xa8, 0x64, 0x26, 0x44, 0xa6, 0x9a, 0xa5, 0x69, 0xa2, 0xd3, 0x6d, 0xba, 0xff, 0xf3,
0xeb, 0x6e, 0xe3, 0x70, 0x72, 0x58, 0x27, 0xd9, 0xe4, 0x9f, 0x50, 0xa2, 0xdd, 0xce, 0x6e, 0xf6,
0x44, 0x72, 0x0c, 0x7e, 0x4d, 0x41, 0x77, 0x2d, 0x00, 0xad, 0x1a, 0x5f, 0x6b, 0xc0, 0x1d, 0x4e,
@@ -778,13 +778,13 @@ static const UINT8 py2k2_tab[256] = {
void pgm_py2k2_decrypt(running_machine &machine) // and ddpdoj/ddpdojbl
{
int i;
- UINT16 *src = (UINT16 *) (machine.root_device().memregion("maincpu")->base()+0x100000);
+ uint16_t *src = (uint16_t *) (machine.root_device().memregion("maincpu")->base()+0x100000);
int rom_size = 0x400000;
for(i=0; i<rom_size/2; i++)
{
- UINT16 x = src[i];
+ uint16_t x = src[i];
IGS27_CRYPT1
IGS27_CRYPT2_ALT3
@@ -824,13 +824,13 @@ static const unsigned char ket_tab[256] = {
void pgm_ket_decrypt(running_machine &machine)
{
int i;
- UINT16 *src = (UINT16 *) (machine.root_device().memregion("maincpu")->base());
+ uint16_t *src = (uint16_t *) (machine.root_device().memregion("maincpu")->base());
int rom_size = 0x400000;
for(i=0; i<rom_size/2; i++)
{
- UINT16 x = src[i];
+ uint16_t x = src[i];
IGS27_CRYPT1
IGS27_CRYPT2_ALT
@@ -870,13 +870,13 @@ static const unsigned char espgal_tab[256] = {
void pgm_espgal_decrypt(running_machine &machine)
{
int i;
- UINT16 *src = (UINT16 *) (machine.root_device().memregion("maincpu")->base());
+ uint16_t *src = (uint16_t *) (machine.root_device().memregion("maincpu")->base());
int rom_size = 0x400000;
for(i=0; i<rom_size/2; i++)
{
- UINT16 x = src[i];
+ uint16_t x = src[i];
IGS27_CRYPT1
IGS27_CRYPT2_ALT3
@@ -895,7 +895,7 @@ void pgm_espgal_decrypt(running_machine &machine)
-static const UINT8 happy6in1_tab[256] = { // IGS0008RD1031215
+static const uint8_t happy6in1_tab[256] = { // IGS0008RD1031215
0x49, 0x47, 0x53, 0x30, 0x30, 0x30, 0x38, 0x52, 0x44, 0x31, 0x30, 0x33, 0x31, 0x32, 0x31, 0x35,
0x14, 0xd6, 0x37, 0x5c, 0x5e, 0xc3, 0xd3, 0x62, 0x96, 0x3d, 0xfb, 0x47, 0xf0, 0xcb, 0xbf, 0xb0,
0x60, 0xa1, 0xc2, 0x3d, 0x90, 0xd0, 0x58, 0x56, 0x22, 0xac, 0xdd, 0x39, 0x27, 0x7e, 0x58, 0x44,
@@ -917,13 +917,13 @@ static const UINT8 happy6in1_tab[256] = { // IGS0008RD1031215
void pgm_happy6_decrypt(running_machine &machine)
{
int i;
- UINT16 *src = (UINT16 *) (machine.root_device().memregion("user1")->base());
+ uint16_t *src = (uint16_t *) (machine.root_device().memregion("user1")->base());
int rom_size = 0x400000;
for(i=0; i<rom_size/2; i++)
{
- UINT16 x = src[i];
+ uint16_t x = src[i];
IGS27_CRYPT1
IGS27_CRYPT2
@@ -940,7 +940,7 @@ void pgm_happy6_decrypt(running_machine &machine)
}
}
-static const UINT8 sdwx_tab[] =
+static const uint8_t sdwx_tab[] =
{
0x49,0x47,0x53,0x30,0x30,0x35,0x35,0x52,0x44,0x34,0x30,0x32,0x30,0x36,0x32,0x31,
0x8A,0xBB,0x20,0x67,0x97,0xA5,0x20,0x45,0x6B,0xC0,0xE8,0x0C,0x80,0xFB,0x49,0xAA,
@@ -964,13 +964,13 @@ static const UINT8 sdwx_tab[] =
void sdwx_decrypt(running_machine &machine)
{
int i;
- UINT16 *src = (UINT16 *) machine.root_device().memregion("user1")->base();
+ uint16_t *src = (uint16_t *) machine.root_device().memregion("user1")->base();
int rom_size = 0x80000;
for(i=0; i<rom_size/2; i++)
{
- UINT16 x = src[i];
+ uint16_t x = src[i];
IGS27_CRYPT1_ALT2
IGS27_CRYPT2_ALT
@@ -988,7 +988,7 @@ void sdwx_decrypt(running_machine &machine)
}
-static const UINT8 hauntedh_tab[0x100] = {
+static const uint8_t hauntedh_tab[0x100] = {
0x49, 0x47, 0x53, 0x30, 0x32, 0x35, 0x34, 0x52, 0x44, 0x34, 0x30, 0x36, 0x30, 0x35, 0x32, 0x36,
0x6C, 0x65, 0x33, 0xFD, 0x7A, 0x71, 0x3D, 0xB8, 0x07, 0xF1, 0x86, 0x96, 0x19, 0x5A, 0xA2, 0x05,
0x49, 0xB1, 0xED, 0x2E, 0x7C, 0x7A, 0x65, 0x8B, 0xE1, 0xE3, 0xC8, 0xAA, 0x2B, 0x32, 0xEE, 0x3F,
@@ -1010,12 +1010,12 @@ static const UINT8 hauntedh_tab[0x100] = {
void hauntedh_decrypt(running_machine &machine)
{
int i;
- UINT16 *src = (UINT16 *) machine.root_device().memregion("user1")->base();
+ uint16_t *src = (uint16_t *) machine.root_device().memregion("user1")->base();
int rom_size = 0x080000;
for(i=0; i<rom_size/2; i++) {
- UINT16 x = src[i];
+ uint16_t x = src[i];
IGS27_CRYPT1
// IGS27_CRYPT2
@@ -1033,7 +1033,7 @@ void hauntedh_decrypt(running_machine &machine)
}
-static const UINT8 chessc2_tab[0x100] = {
+static const uint8_t chessc2_tab[0x100] = {
0x49, 0x47, 0x53, 0x30, 0x30, 0x38, 0x32, 0x52, 0x44, 0x34, 0x30, 0x32, 0x31, 0x32, 0x31, 0x31,
0x28, 0xCA, 0x9C, 0xAD, 0xBB, 0x2D, 0xF0, 0x41, 0x6E, 0xCE, 0xAD, 0x73, 0xAE, 0x1C, 0xD1, 0x14,
0x6F, 0x9A, 0x75, 0x18, 0xA8, 0x91, 0x68, 0xe4, 0x09, 0xF4, 0x0F, 0xD7, 0xFF, 0x93, 0x7D, 0x1B,
@@ -1055,12 +1055,12 @@ static const UINT8 chessc2_tab[0x100] = {
void chessc2_decrypt(running_machine &machine)
{
int i;
- UINT16 *src = (UINT16 *) machine.root_device().memregion("user1")->base();
+ uint16_t *src = (uint16_t *) machine.root_device().memregion("user1")->base();
int rom_size = 0x80000;
for(i=0; i<rom_size/2; i++) {
- UINT16 x = src[i];
+ uint16_t x = src[i];
IGS27_CRYPT1
IGS27_CRYPT2_ALT
@@ -1078,7 +1078,7 @@ void chessc2_decrypt(running_machine &machine)
}
-static const UINT8 klxyj_tab[0x100] = {
+static const uint8_t klxyj_tab[0x100] = {
0x49, 0x47, 0x53, 0x30, 0x30, 0x30, 0x38, 0x52, 0x44, 0x34, 0x30, 0x31, 0x30, 0x39, 0x32, 0x34,
0x3F, 0x0F, 0x66, 0x9A, 0xBF, 0x0D, 0x06, 0x55, 0x09, 0x01, 0xEB, 0x72, 0xEB, 0x9B, 0x89, 0xFA,
0x24, 0xD1, 0x5D, 0xCA, 0xE6, 0x8A, 0x8C, 0xE0, 0x92, 0x8D, 0xBF, 0xE4, 0xAF, 0xAA, 0x3E, 0xFA,
@@ -1100,12 +1100,12 @@ static const UINT8 klxyj_tab[0x100] = {
void klxyj_decrypt(running_machine &machine)
{
int i;
- UINT16 *src = (UINT16 *) machine.root_device().memregion("user1")->base();
+ uint16_t *src = (uint16_t *) machine.root_device().memregion("user1")->base();
int rom_size = 0x80000;
for(i=0; i<rom_size/2; i++) {
- UINT16 x = src[i];
+ uint16_t x = src[i];
IGS27_CRYPT1
IGS27_CRYPT2_ALT
@@ -1122,7 +1122,7 @@ void klxyj_decrypt(running_machine &machine)
}
}
-static const UINT8 zhongguo_tab[0x100] = {
+static const uint8_t zhongguo_tab[0x100] = {
0x68, 0x56, 0xC2, 0x54, 0xA2, 0x8C, 0x7B, 0x4F, 0x37, 0xAC, 0x60, 0xF8, 0x24, 0xDF, 0x3E, 0x6B,
0xE2, 0x89, 0x3D, 0xF3, 0x31, 0x83, 0x4A, 0x65, 0x27, 0x98, 0xC5, 0xBF, 0x78, 0x3E, 0x6C, 0x02,
0x07, 0x96, 0x88, 0x4D, 0xAE, 0xA6, 0x56, 0x3A, 0x4A, 0xD5, 0xB8, 0x7E, 0x0B, 0xA7, 0x1D, 0xBC,
@@ -1144,12 +1144,12 @@ static const UINT8 zhongguo_tab[0x100] = {
void zhongguo_decrypt(running_machine &machine)
{
int i;
- UINT16 *src = (UINT16 *) machine.root_device().memregion("user1")->base();
+ uint16_t *src = (uint16_t *) machine.root_device().memregion("user1")->base();
int rom_size = 0x80000;
for(i=0; i<rom_size/2; i++) {
- UINT16 x = src[i];
+ uint16_t x = src[i];
IGS27_CRYPT1
IGS27_CRYPT2_ALT
@@ -1166,7 +1166,7 @@ void zhongguo_decrypt(running_machine &machine)
}
}
-static const UINT8 gonefsh2_tab[0x100] = {
+static const uint8_t gonefsh2_tab[0x100] = {
0x49, 0x47, 0x53, 0x30, 0x30, 0x38, 0x32, 0x52, 0x44, 0x34, 0x30, 0x32, 0x31, 0x32, 0x31, 0x31,
0x28, 0xca, 0x9c, 0xAD, 0xbb, 0x2d, 0xf0, 0x41, 0x6e, 0xce, 0xad, 0x73, 0xae, 0x1c, 0xd1, 0x14,
0x6f, 0x9a, 0x75, 0x18, 0xa8, 0x91, 0x68, 0xe4, 0x09, 0xf4, 0x0f, 0xd7, 0xff, 0x93, 0x7d, 0x1b,
@@ -1188,12 +1188,12 @@ static const UINT8 gonefsh2_tab[0x100] = {
void gonefsh2_decrypt(running_machine &machine)
{
int i;
- UINT16 *src = (UINT16 *) machine.root_device().memregion("user1")->base();
+ uint16_t *src = (uint16_t *) machine.root_device().memregion("user1")->base();
int rom_size = 0x80000;
for(i=0; i<rom_size/2; i++) {
- UINT16 x = src[i];
+ uint16_t x = src[i];
IGS27_CRYPT1
IGS27_CRYPT2_ALT
@@ -1210,7 +1210,7 @@ void gonefsh2_decrypt(running_machine &machine)
}
}
-static const UINT8 sddz_tab[0x100] = {
+static const uint8_t sddz_tab[0x100] = {
0xd7, 0x5f, 0xc8, 0x5b, 0xbf, 0xfa, 0x61, 0x0c, 0xdd, 0xab, 0xc3, 0x26, 0x3b, 0xd8, 0xbc, 0x1e,
0xa6, 0x4b, 0xcf, 0xdc, 0x12, 0x61, 0x70, 0xd2, 0x76, 0xef, 0x44, 0xe8, 0x9a, 0x65, 0xf5, 0x13,
0xb3, 0x1e, 0xcd, 0x00, 0xdf, 0x30, 0xa7, 0x9d, 0xb7, 0x49, 0xdf, 0xf6, 0xa7, 0x0b, 0x1a, 0x58,
@@ -1232,12 +1232,12 @@ static const UINT8 sddz_tab[0x100] = {
void sddz_decrypt(running_machine &machine)
{
int i;
- UINT16 *src = (UINT16 *) machine.root_device().memregion("user1")->base();
+ uint16_t *src = (uint16_t *) machine.root_device().memregion("user1")->base();
int rom_size = 0x80000;
for(i=0; i<rom_size/2; i++) {
- UINT16 x = src[i];
+ uint16_t x = src[i];
IGS27_CRYPT1_ALT;
IGS27_CRYPT2_ALT
@@ -1254,7 +1254,7 @@ void sddz_decrypt(running_machine &machine)
}
}
-static const UINT8 lhzb3_tab[0x100] = {
+static const uint8_t lhzb3_tab[0x100] = {
0x13, 0x45, 0x21, 0xA1, 0x69, 0x9A, 0x05, 0xDA, 0x7D, 0x10, 0xDA, 0x7F, 0x34, 0x9F, 0xF3, 0x64,
0x35, 0xF9, 0x16, 0x1C, 0xD4, 0x60, 0x02, 0xF3, 0x42, 0xC7, 0x42, 0x29, 0xF3, 0x2C, 0x31, 0x71,
0x50, 0x35, 0x4E, 0xAA, 0x9F, 0x09, 0xC3, 0xDD, 0x2F, 0x72, 0x30, 0x77, 0xC7, 0x30, 0xBC, 0xC8,
@@ -1276,12 +1276,12 @@ static const UINT8 lhzb3_tab[0x100] = {
void lhzb3_decrypt(running_machine &machine)
{
int i;
- UINT16 *src = (UINT16 *) machine.root_device().memregion("user1")->base();
+ uint16_t *src = (uint16_t *) machine.root_device().memregion("user1")->base();
int rom_size = 0x80000;
for(i=0; i<rom_size/2; i++) {
- UINT16 x = src[i];
+ uint16_t x = src[i];
IGS27_CRYPT1
IGS27_CRYPT2_ALT
@@ -1298,7 +1298,7 @@ void lhzb3_decrypt(running_machine &machine)
}
}
-static const UINT8 mgfx_tab[0x100] = {
+static const uint8_t mgfx_tab[0x100] = {
0x49, 0x47, 0x53, 0x30, 0x30, 0x38, 0x33, 0x52, 0x44, 0x34, 0x30, 0x32, 0x31, 0x32, 0x31, 0x32,
0x82, 0x6B, 0xCA, 0xBE, 0x9B, 0x9F, 0xC3, 0xA5, 0x8F, 0x2A, 0x9F, 0x0E, 0x26, 0x28, 0x4A, 0x9D,
0xA2, 0x57, 0xFC, 0x43, 0xF3, 0x34, 0x05, 0x72, 0x1E, 0x59, 0xD9, 0xA0, 0xE7, 0x16, 0x5B, 0xFF,
@@ -1320,12 +1320,12 @@ static const UINT8 mgfx_tab[0x100] = {
void mgfx_decrypt(running_machine &machine)
{
int i;
- UINT16 *src = (UINT16 *) machine.root_device().memregion("user1")->base();
+ uint16_t *src = (uint16_t *) machine.root_device().memregion("user1")->base();
int rom_size = 0x80000;
for(i=0; i<rom_size/2; i++) {
- UINT16 x = src[i];
+ uint16_t x = src[i];
IGS27_CRYPT1_ALT
// IGS27_CRYPT2
@@ -1342,7 +1342,7 @@ void mgfx_decrypt(running_machine &machine)
}
}
-static const UINT8 lhzb4_tab[0x100] = {
+static const uint8_t lhzb4_tab[0x100] = {
0x49, 0x47, 0x53, 0x30, 0x31, 0x36, 0x39, 0x52, 0x44, 0x32, 0x30, 0x34, 0x30, 0x37, 0x33, 0x30,
0x87, 0xA5, 0x22, 0x6E, 0x2F, 0x89, 0xC6, 0x3B, 0xF3, 0x4D, 0x29, 0xD5, 0x46, 0x17, 0x9C, 0x38,
0xC2, 0xE4, 0x16, 0x4B, 0x36, 0xFD, 0xE0, 0x7F, 0xF2, 0xBE, 0x83, 0xA6, 0x52, 0x87, 0xF2, 0x11,
@@ -1364,12 +1364,12 @@ static const UINT8 lhzb4_tab[0x100] = {
void lhzb4_decrypt(running_machine &machine)
{
int i;
- UINT16 *src = (UINT16 *) machine.root_device().memregion("user1")->base();
+ uint16_t *src = (uint16_t *) machine.root_device().memregion("user1")->base();
int rom_size = 0x80000;
for(i=0; i<rom_size/2; i++) {
- UINT16 x = src[i];
+ uint16_t x = src[i];
IGS27_CRYPT1
// IGS27_CRYPT2
@@ -1387,7 +1387,7 @@ void lhzb4_decrypt(running_machine &machine)
}
-static const UINT8 fearless_tab[256] = {
+static const uint8_t fearless_tab[256] = {
0x49, 0x47, 0x53, 0x30, 0x32, 0x30, 0x32, 0x52, 0x44, 0x32, 0x30, 0x35, 0x30, 0x31, 0x30, 0x33,
0x0A, 0x68, 0x3C, 0x24, 0x56, 0x67, 0xED, 0xE3, 0x3A, 0x99, 0x20, 0x24, 0x09, 0x4D, 0x0C, 0xB6,
0x0D, 0xBB, 0xE0, 0xE4, 0x93, 0x79, 0x6C, 0x10, 0x3B, 0x3B, 0x10, 0x91, 0x7E, 0xCF, 0xE5, 0xC9,
@@ -1409,13 +1409,13 @@ static const UINT8 fearless_tab[256] = {
void fearless_decrypt(running_machine &machine)
{
int i;
- UINT16 *src = (UINT16 *) machine.root_device().memregion("user1")->base();
+ uint16_t *src = (uint16_t *) machine.root_device().memregion("user1")->base();
int rom_size = 0x80000;
for(i=0; i<rom_size/2; i++)
{
- UINT16 x = src[i];
+ uint16_t x = src[i];
// might not be 100% correct...
IGS27_CRYPT1
@@ -1456,13 +1456,13 @@ static unsigned char pgm3in1_tab[256] = {
void pgm_decrypt_pgm3in1(running_machine &machine)
{
int i;
- UINT16 *src = (UINT16 *) (machine.root_device().memregion("maincpu")->base()+0x100000);
+ uint16_t *src = (uint16_t *) (machine.root_device().memregion("maincpu")->base()+0x100000);
int rom_size = 0x400000;
for(i=0; i<rom_size/2; i++)
{
- UINT16 x = src[i];
+ uint16_t x = src[i];
IGS27_CRYPT1
IGS27_CRYPT2
@@ -1481,7 +1481,7 @@ void pgm_decrypt_pgm3in1(running_machine &machine)
// IGS MAHJONG CHINA VS107C
-static const UINT8 slqz3_tab[0x100] = {
+static const uint8_t slqz3_tab[0x100] = {
0xef, 0xdf, 0x90, 0x60, 0x46, 0x43, 0x33, 0x38, 0x92, 0x2d, 0x5a, 0x08, 0x0d, 0x2f, 0x05, 0x75,
0xa1, 0x42, 0x17, 0x12, 0xdb, 0xa2, 0xdd, 0x5d, 0x0c, 0xec, 0xdc, 0xf7, 0xc1, 0x76, 0xe0, 0x24,
0x65, 0xef, 0x41, 0x83, 0x35, 0x38, 0x78, 0x0e, 0x65, 0x82, 0xe3, 0x55, 0x90, 0xa8, 0xd5, 0xf7,
@@ -1503,12 +1503,12 @@ static const UINT8 slqz3_tab[0x100] = {
void slqz3_decrypt(running_machine &machine)
{
int i;
- UINT16 *src = (UINT16 *) machine.root_device().memregion("user1")->base();
+ uint16_t *src = (uint16_t *) machine.root_device().memregion("user1")->base();
int rom_size = 0x200000;
for(i=0; i<rom_size/2; i++) {
- UINT16 x = src[i];
+ uint16_t x = src[i];
// not 100% verified
IGS27_CRYPT1
@@ -1526,7 +1526,7 @@ void slqz3_decrypt(running_machine &machine)
}
}
-static const UINT8 fruitpar_tab[0x100] = {
+static const uint8_t fruitpar_tab[0x100] = {
0xe9, 0x0b, 0x95, 0x7e, 0x0d, 0x7d, 0x5c, 0x1e, 0x81, 0x0e, 0xa6, 0xd4, 0x8e, 0x90, 0xd8, 0x54,
0x27, 0x65, 0x51, 0x08, 0x1c, 0xa0, 0x3b, 0x51, 0x83, 0x60, 0x93, 0x02, 0x64, 0x69, 0x77, 0x1a,
0xa4, 0x03, 0xb0, 0xc2, 0x34, 0x18, 0x80, 0x87, 0x7a, 0x88, 0xad, 0xd9, 0xff, 0xd0, 0xce, 0xc4,
@@ -1548,14 +1548,14 @@ static const UINT8 fruitpar_tab[0x100] = {
void fruitpar_decrypt(running_machine &machine)
{
int i;
- UINT16 *src = (UINT16 *) machine.root_device().memregion("user1")->base();
+ uint16_t *src = (uint16_t *) machine.root_device().memregion("user1")->base();
int rom_size = 0x80000;
// not 100% verified
for(i=0; i<rom_size/2; i++)
{
- UINT16 x = src[i];
+ uint16_t x = src[i];
IGS27_CRYPT1
// IGS27_CRYPT2
@@ -1572,7 +1572,7 @@ void fruitpar_decrypt(running_machine &machine)
}
}
-static UINT8 amazonia_tab[0x100] = {
+static uint8_t amazonia_tab[0x100] = {
0x86, 0x00, 0xd2, 0x6b, 0x78, 0x79, 0xbc, 0x80, 0xc6, 0x8e, 0x9b, 0xd8, 0x3a, 0x52, 0x09, 0x15,
0x05, 0x57, 0x7a, 0x1f, 0x2f, 0x08, 0x47, 0xa0, 0x44, 0x4c, 0xf7, 0xbe, 0x3d, 0x59, 0xd1, 0x18,
0xac, 0xd5, 0xa0, 0x03, 0x2c, 0x34, 0xc6, 0x06, 0x08, 0x4e, 0x84, 0x94, 0x2b, 0x3f, 0x88, 0x08,
@@ -1594,12 +1594,12 @@ static UINT8 amazonia_tab[0x100] = {
void amazonia_decrypt(running_machine &machine)
{
int i;
- UINT16 *src = (UINT16 *) machine.root_device().memregion("user1")->base();
+ uint16_t *src = (uint16_t *) machine.root_device().memregion("user1")->base();
int rom_size = 0x80000;
for(i=0; i<rom_size/2; i++) {
- UINT16 x = src[i];
+ uint16_t x = src[i];
IGS27_CRYPT1
IGS27_CRYPT2_ALT
@@ -1617,7 +1617,7 @@ void amazonia_decrypt(running_machine &machine)
}
// not 100% verified
-static const UINT8 amazoni2_tab[0x100] = {
+static const uint8_t amazoni2_tab[0x100] = {
0x49, 0x47, 0x53, 0x30, 0x30, 0x37, 0x37, 0x52, 0x44, 0x34, 0x30, 0x32, 0x31, 0x30, 0x31, 0x36,
0xed, 0x3f, 0x77, 0xd0, 0xc4, 0x72, 0x77, 0xe1, 0x35, 0x15, 0x10, 0xc6, 0x1b, 0xee, 0x25, 0x4a,
0x0d, 0x06, 0x37, 0x19, 0xfa, 0xf9, 0x29, 0xb0, 0x03, 0x7e, 0x32, 0x83, 0x99, 0x32, 0x23, 0x6e,
@@ -1640,13 +1640,13 @@ static const UINT8 amazoni2_tab[0x100] = {
void amazoni2_decrypt(running_machine &machine)
{
int i;
- UINT16 *src = (UINT16 *) machine.root_device().memregion("user1")->base();
+ uint16_t *src = (uint16_t *) machine.root_device().memregion("user1")->base();
int rom_size = 0x80000;
for(i=0; i<rom_size/2; i++)
{
- UINT16 x = src[i];
+ uint16_t x = src[i];
// should be correct
IGS27_CRYPT1