summaryrefslogtreecommitdiffstatshomepage
path: root/src/mame/drivers/route16.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/mame/drivers/route16.cpp')
-rw-r--r--src/mame/drivers/route16.cpp17
1 files changed, 9 insertions, 8 deletions
diff --git a/src/mame/drivers/route16.cpp b/src/mame/drivers/route16.cpp
index 4f723f3590a..80534e2db1c 100644
--- a/src/mame/drivers/route16.cpp
+++ b/src/mame/drivers/route16.cpp
@@ -152,18 +152,19 @@ void route16_state::init_vscompmj() // only opcodes encrypted
{
uint8_t *rom = memregion("cpu1")->base();
- uint8_t unkn = 0x00;
+ uint8_t unk0 = 0x00;
+ uint8_t unk1 = 0x00;
static const uint8_t xor_table_00[0x08][0x08] =
{
{ 0x04, 0x01, 0x14, 0x14, 0x05, 0x10, 0x54, 0x05 }, // 0x0x and 0x2x
{ 0x15, 0x51, 0x01, 0x44, 0x50, 0x44, 0x11, 0x50 }, // 0x1x and 0x3x
{ 0x14, 0x50, 0x41, 0x15, 0x50, 0x15, 0x15, 0x41 }, // 0x4x and 0x6x
- { unkn, 0x04, 0x40, 0x11, 0x11, 0x45, 0x10, unkn }, // 0x5x and 0x7x
- { 0x40, unkn, 0x14, unkn, 0x01, 0x44, 0x14, 0x54 }, // 0x8x and 0xax
- { 0x11, 0x40, unkn, unkn, 0x14, 0x01, 0x54, 0x51 }, // 0x9x and 0xbx
- { 0x05, 0x45, 0x10, 0x55, unkn, 0x15, 0x55, 0x11 }, // 0xcx and 0xex
- { unkn, 0x41, 0x51, 0x10, 0x01, 0x44, 0x50, 0x50 }, // 0xdx and 0xfx
+ { unk0, 0x04, 0x40, 0x11, 0x11, 0x45, 0x10, unk0 }, // 0x5x and 0x7x
+ { 0x40, unk0, 0x14, unk0, 0x01, 0x44, 0x14, 0x54 }, // 0x8x and 0xax
+ { 0x11, 0x40, unk0, unk0, 0x14, 0x01, 0x54, 0x51 }, // 0x9x and 0xbx
+ { 0x05, 0x45, 0x10, 0x55, unk0, 0x15, 0x55, 0x11 }, // 0xcx and 0xex
+ { unk0, 0x41, 0x51, 0x10, 0x01, 0x44, 0x50, 0x50 }, // 0xdx and 0xfx
};
static const uint8_t xor_table_01[0x08][0x08] =
@@ -172,10 +173,10 @@ void route16_state::init_vscompmj() // only opcodes encrypted
{ 0x14, 0x14, 0x04, 0x45, 0x44, 0x01, 0x05, 0x05 }, // 0x1x and 0x3x
{ 0x40, 0x14, 0x01, 0x11, 0x45, 0x14, 0x04, 0x50 }, // 0x4x and 0x6x
{ 0x04, 0x40, 0x55, 0x55, 0x44, 0x40, 0x55, 0x55 }, // 0x5x and 0x7x
- { 0x15, 0x05, 0x14, 0x05, 0x01, unkn, 0x04, 0x04 }, // 0x8x and 0xax
+ { 0x15, 0x05, 0x14, 0x05, 0x01, unk1, 0x04, 0x04 }, // 0x8x and 0xax
{ 0x10, 0x04, 0x51, 0x01, 0x04, 0x04, 0x45, 0x51 }, // 0x9x and 0xbx
{ 0x11, 0x01, 0x44, 0x44, 0x05, 0x15, 0x10, 0x05 }, // 0xcx and 0xex
- { unkn, 0x14, 0x05, unkn, 0x01, 0x41, 0x04, unkn }, // 0xdx and 0xfx
+ { unk1, 0x14, 0x05, unk1, 0x01, 0x41, 0x04, 0x40 }, // 0xdx and 0xfx
};
for (int i = 0; i < 0x8000; i++)