From 8c1a6fb6bbfdbb563d7bf4e2f68d6380b63cedee Mon Sep 17 00:00:00 2001 From: Ivan Vangelista Date: Fri, 23 Jun 2023 20:29:22 +0200 Subject: funworld/supercrd.cpp: tweaked XOR tables --- src/mame/funworld/supercrd.cpp | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/src/mame/funworld/supercrd.cpp b/src/mame/funworld/supercrd.cpp index 9bbb07f313f..95185043669 100644 --- a/src/mame/funworld/supercrd.cpp +++ b/src/mame/funworld/supercrd.cpp @@ -946,7 +946,7 @@ void supercrd_state::init_gampo() // TODO: check unknown opcodes uint8_t xor_table[0x04][0x08][0x08] = { { - { 0x51, 0x12, 0x51, 0x02, 0x02, 0x13, unkn, 0x43 }, // 0x0x and 0x2x + { 0x51, 0x12, 0x41, 0x02, 0x02, 0x13, unkn, 0x43 }, // 0x0x and 0x2x { 0x43, 0x12, 0x53, 0x43, 0x53, 0x00, unkn, 0x51 }, // 0x1x and 0x3x { 0x51, 0x01, 0x52, 0x43, 0x43, 0x00, 0x42, 0x12 }, // 0x4x and 0x6x { 0x42, 0x53, 0x10, 0x01, 0x00, 0x03, 0x01, 0x52 }, // 0x5x and 0x7x @@ -957,7 +957,7 @@ void supercrd_state::init_gampo() // TODO: check unknown opcodes }, { { 0x10, 0x51, 0x50, 0x02, 0x11, 0x02, 0x41, 0x01 }, // 0x0x and 0x2x - { unkn, 0x13, 0x51, 0x01, 0x43, 0x02, 0x02, 0x42 }, // 0x1x and 0x3x // TODO: 0x1a to be checked + { 0x50, 0x13, 0x51, 0x01, 0x43, 0x02, 0x02, 0x42 }, // 0x1x and 0x3x { 0x02, 0x41, 0x11, 0x02, 0x40, 0x00, 0x12, 0x51 }, // 0x4x and 0x6x { 0x53, 0x40, 0x41, 0x02, 0x02, 0x13, 0x12, 0x52 }, // 0x5x and 0x7x { 0x12, 0x12, 0x40, 0x50, 0x53, 0x12, 0x40, 0x51 }, // 0x8x and 0xax // TODO: 0x84 to be checked @@ -968,8 +968,8 @@ void supercrd_state::init_gampo() // TODO: check unknown opcodes { { 0x52, 0x02, 0x00, 0x13, 0x43, 0x01, 0x03, unkn }, // 0x0x and 0x2x { 0x02, 0x00, 0x12, 0x51, 0x01, 0x40, 0x42, 0x03 }, // 0x1x and 0x3x - { 0x13, 0x10, 0x43, 0x13, 0x43, 0x00, 0x00, 0x41 }, // 0x4x and 0x6x // TODO: 0x48 to be checked - { 0x03, unkn, 0x41, 0x13, 0x02, 0x43, 0x01, unkn }, // 0x5x and 0x7x + { 0x03, 0x10, 0x43, 0x13, 0x43, 0x00, 0x00, 0x41 }, // 0x4x and 0x6x + { 0x03, 0x10, 0x41, 0x13, 0x02, 0x43, 0x01, unkn }, // 0x5x and 0x7x { 0x52, 0x50, unkn, 0x41, unkn, unkn, 0x02, 0x52 }, // 0x8x and 0xax { 0x00, 0x00, unkn, unkn, 0x01, unkn, 0x01, 0x10 }, // 0x9x and 0xbx { 0x41, 0x12, unkn, 0x50, 0x10, 0x00, unkn, 0x53 }, // 0xcx and 0xex @@ -1009,7 +1009,7 @@ void supercrd_state::init_supst() // TODO: check unknown opcodes { { { 0x50, 0x12, 0x02, 0x11, 0x40, 0x11, 0x50, 0x52 }, // 0x0x and 0x2x - { unkn, 0x01, 0x43, 0x12, 0x01, 0x10, 0x41, 0x13 }, // 0x1x and 0x3x + { 0x53, 0x01, 0x43, 0x12, 0x01, 0x10, 0x41, 0x13 }, // 0x1x and 0x3x { 0x51, 0x12, 0x03, 0x40, 0x02, 0x00, 0x01, 0x51 }, // 0x4x and 0x6x { 0x12, 0x03, 0x12, 0x51, 0x00, 0x52, 0x50, 0x40 }, // 0x5x and 0x7x { 0x12, 0x53, 0x41, 0x02, unkn, unkn, 0x00, 0x41 }, // 0x8x and 0xax @@ -1019,10 +1019,10 @@ void supercrd_state::init_supst() // TODO: check unknown opcodes }, { { 0x52, 0x12, 0x43, 0x00, 0x01, 0x50, 0x11, 0x40 }, // 0x0x and 0x2x - { 0x52, 0x52, 0x00, unkn, 0x12, 0x01, 0x00, 0x10 }, // 0x1x and 0x3x + { 0x52, 0x52, 0x00, 0x53, 0x12, 0x01, 0x00, 0x10 }, // 0x1x and 0x3x { 0x41, 0x12, 0x12, 0x41, 0x00, 0x00, 0x12, 0x52 }, // 0x4x and 0x6x { 0x01, 0x51, 0x42, 0x42, 0x02, 0x51, 0x01, 0x11 }, // 0x5x and 0x7x - { 0x53, 0x03, 0x10, unkn, 0x51, 0x43, unkn, unkn }, // 0x8x and 0xax + { 0x53, 0x03, 0x10, 0x53, 0x51, 0x43, unkn, unkn }, // 0x8x and 0xax { 0x10, 0x53, 0x03, 0x10, 0x42, 0x01, 0x42, 0x11 }, // 0x9x and 0xbx { 0x50, 0x52, 0x43, 0x03, 0x43, 0x00, 0x51, 0x52 }, // 0xcx and 0xex { 0x01, 0x12, 0x00, 0x12, 0x10, unkn, 0x40, 0x53 } // 0xdx and 0xfx @@ -1030,12 +1030,12 @@ void supercrd_state::init_supst() // TODO: check unknown opcodes { { 0x50, 0x12, 0x53, 0x03, 0x02, 0x02, 0x50, 0x40 }, // 0x0x and 0x2x { 0x11, 0x51, 0x00, 0x03, 0x11, 0x40, 0x12, 0x40 }, // 0x1x and 0x3x - { unkn, 0x42, 0x01, 0x01, 0x10, 0x00, 0x52, 0x03 }, // 0x4x and 0x6x - { 0x52, 0x03, 0x43, 0x00, 0x42, 0x40, unkn, 0x11 }, // 0x5x and 0x7x + { 0x01, 0x42, 0x01, 0x01, 0x10, 0x00, 0x52, 0x03 }, // 0x4x and 0x6x + { 0x52, 0x03, 0x43, 0x00, 0x42, 0x40, 0x41, 0x11 }, // 0x5x and 0x7x { unkn, 0x01, 0x53, 0x41, 0x13, 0x02, 0x40, 0x11 }, // 0x8x and 0xax { 0x02, 0x02, 0x40, unkn, 0x50, 0x43, 0x13, 0x40 }, // 0x9x and 0xbx { 0x41, 0x51, 0x02, 0x00, 0x11, 0x00, 0x12, 0x43 }, // 0xcx and 0xex - { 0x11, 0x02, 0x11, 0x42, 0x40, 0x40, 0x50, unkn } // 0xdx and 0xfx + { 0x11, 0x02, 0x11, 0x42, 0x40, 0x40, 0x50, 0x10 } // 0xdx and 0xfx }, { { 0x50, 0x11, 0x01, 0x02, 0x42, 0x41, 0x51, 0x11 }, // 0x0x and 0x2x -- cgit v1.2.3