mirror of
https://github.com/holub/mame
synced 2025-06-25 22:04:15 +03:00
(nw)
(nw)
This commit is contained in:
parent
9f866f8ccf
commit
a2f6af88c7
@ -1120,7 +1120,7 @@ void klxyj_decrypt(running_machine &machine)
|
||||
}
|
||||
}
|
||||
|
||||
static const UINT8 big2_tab[0x100] = {
|
||||
static const UINT8 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,
|
||||
@ -1139,7 +1139,7 @@ static const UINT8 big2_tab[0x100] = {
|
||||
0x1E, 0xA6, 0xFC, 0xFE, 0xE3, 0x8E, 0xB1, 0xB7, 0x0F, 0x32, 0xF1, 0xCF, 0x36, 0xFE, 0x65, 0x8E
|
||||
};
|
||||
|
||||
void big2_decrypt(running_machine &machine)
|
||||
void zhongguo_decrypt(running_machine &machine)
|
||||
{
|
||||
int i;
|
||||
UINT16 *src = (UINT16 *) machine.root_device().memregion("user1")->base();
|
||||
@ -1158,7 +1158,7 @@ void big2_decrypt(running_machine &machine)
|
||||
IGS27_CRYPT7
|
||||
IGS27_CRYPT8
|
||||
|
||||
x ^= big2_tab[(i>> 1) & 0xff] << 8;
|
||||
x ^= zhongguo_tab[(i>> 1) & 0xff] << 8;
|
||||
|
||||
src[i] = x;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user