summaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
author Roberto Zandona <robertoz@mamedev.org>2009-12-23 06:59:05 +0000
committer Roberto Zandona <robertoz@mamedev.org>2009-12-23 06:59:05 +0000
commit2b0dc1446838416c83db1651586ac459327d7fbe (patch)
tree25ecbc37468f575929daebefdd948298980ebcb1
parent06bdbdbe52dfc5cdab6825d8fdc7f25de69ac57e (diff)
cb2001: added 2 opcodes
-rw-r--r--src/mame/drivers/cb2001.c20
1 files changed, 10 insertions, 10 deletions
diff --git a/src/mame/drivers/cb2001.c b/src/mame/drivers/cb2001.c
index 513076d0a52..d3bdfa1b880 100644
--- a/src/mame/drivers/cb2001.c
+++ b/src/mame/drivers/cb2001.c
@@ -46,8 +46,8 @@ In test mode (c) is 2000
#define xxxx 0x90 /* Unknown */
static const UINT8 cb2001_decryption_table[256] = {
- 0xe8,xxxx,0x94,xxxx,0x80,0x61,0x12,xxxx, 0x3c,xxxx,xxxx,xxxx,xxxx,xxxx,xxxx,xxxx, /* 00 */
-// pppp ???? ???? ???? pppp pppp
+ 0xe8,xxxx,0x94,xxxx,0x80,0x61,0x12,xxxx, 0x3c,xxxx,xxxx,0x23,xxxx,xxxx,xxxx,xxxx, /* 00 */
+// pppp ???? pppp ???? pppp pppp p?p?
xxxx,xxxx,xxxx,0x27,0x1c,xxxx,xxxx,xxxx, 0x32,xxxx,0xa0,0xd3,0x3a,0x14,0x89,xxxx, /* 10 */
// pppp pppp pppp ???? pppp pppp pppp pppp ????
xxxx,0x8e,xxxx,0x0f,xxxx,0x49,0xb5,xxxx, xxxx,xxxx,xxxx,0x75,xxxx,xxxx,xxxx,xxxx, /* 20 */
@@ -70,8 +70,8 @@ static const UINT8 cb2001_decryption_table[256] = {
// ???? ???? ???? !!!! ???? pppp pppp
0x75,xxxx,0xb4,xxxx,xxxx,xxxx,xxxx,xxxx, xxxx,xxxx,0x03,xxxx,xxxx,xxxx,0x07,0xcf, /* B0 */
// ???? pppp pppp ???? ???? ????
- xxxx,0xec,0xee,xxxx,xxxx,0xe2,xxxx,xxxx, xxxx,xxxx,xxxx,xxxx,xxxx,xxxx,0x36,xxxx, /* C0 */
-// pppp ???? pppp ????
+ xxxx,0xec,0xee,xxxx,xxxx,0xe2,xxxx,xxxx, xxxx,xxxx,xxxx,xxxx,xxxx,xxxx,0x2e,xxxx, /* C0 */
+// pppp ???? pppp pppp
xxxx,xxxx,0x46,xxxx,0x60,xxxx,xxxx,0x47, 0x88,xxxx,xxxx,xxxx,xxxx,0xfa,0xc7,0x8b, /* D0 */
// pppp ???? pppp pppp ???? !!!! pppp
0x8a,xxxx,xxxx,0xc6,xxxx,xxxx,xxxx,xxxx, xxxx,xxxx,xxxx,xxxx,xxxx,xxxx,xxxx,xxxx, /* E0 */
@@ -161,10 +161,10 @@ cmv4 cb2001 (en -> de)
4aa8 ld d,$00 e66eb mov ah,00h (b2 -> b4)
4aaa ld hl,$4b62 e66ed mov bw,67cbh (6d -> bb)
4aad add lh,de e66f0 add bw,aw (ba -> 03)
- 4aae ld e,(hl) . prefix
+ 4aae ld e,(hl) .
4aaf inc hl .
4abo ld d,(hl) .
- 4ab1 ex de,hl e66f2 mov bw,w ptr ss[bw](df -> 8b)
+ 4ab1 ex de,hl e66f2 mov bw,w ptr ss[bw](df -> 8b)prefix not sure about prefix
4ab2 xor a .
4ab3 ld ($d618),a e66f5 mov b ptr[72dh],ah (d8 -> 88)
4ab6 ld ($d619),a e66f9 mov b ptr[72eh],ah
@@ -180,10 +180,10 @@ cmv4 cb2001 (en -> de)
4ac8 ret nz e6711 ret (70 -> c3)
4ac9 ld hl,($d61a) e6712 mov bw,w ptr[72fh]
- . e6716 OB DB ?????????
+ . e6716 or bw,bw ??? (0b -> 23) ???
. e6718 bne 0e671bh
. e671a ret
- 4acc ld a,(hl) e671b mov al,b ptr ss[bw](ce -> 36) (e0 -> 8a) not sure about the prefix
+ 4acc ld a,(hl) e671b mov al,b ptr ps[bw](ce -> 2e) (e0 -> 8a) not sure about the prefix
4acd inc hl e671e inc bw (7d -> 43)
4ace cp $f0 e671f cmp al,0f0h
4ad0 jr nc,$4b14 e6721 bnc 0e676fh (8c -> 73)
@@ -200,11 +200,11 @@ cmv4 cb2001 (en -> de)
4aec ld d,$00 e673f mov ah,0h
4aee ld hl,$4b42 e6741 mov bw,67ab
4af1 add hl,de e6744 add bw,aw
- 4af2 ld e,(hl) e6746 mov bw,w ptr ss[bw] not sure the prefix
+ 4af2 ld e,(hl) e6746 mov bw,w ptr ps[bw] not sure the prefix
4af3 inc hl .
4af4 ld d,(hl) .
4af5 ld a,c .
- 4af6 and $f0 e6749 and cl,f0h (ce -> 80) probably, maybe 82
+ 4af6 and $f0 e6749 and cl,f0h (04 -> 80)
4af8 jr z,$4b05 e674c be 0e6753
4afa rrca .
4afb rrca .