summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Pavone <pavone@retrodev.com>2013-05-02 22:18:33 -0700
committerMike Pavone <pavone@retrodev.com>2013-05-02 22:18:33 -0700
commit092fbfad1ef2d84b3a9336103d61752f10f29ed1 (patch)
tree71c0f462723f4cfffaf7358d21a58cb503e76fdf
parentc6578dc6a6c93d0a73f224b2c48a6ed914eb9160 (diff)
Fix decoding of CP.
-rw-r--r--z80inst.c16
1 files changed, 8 insertions, 8 deletions
diff --git a/z80inst.c b/z80inst.c
index 0acbb17..6525fc2 100644
--- a/z80inst.c
+++ b/z80inst.c
@@ -202,14 +202,14 @@ z80inst z80_tbl_a[256] = {
{Z80_OR, Z80_A, Z80_REG, Z80_L, 0},
{Z80_OR, Z80_A, Z80_REG_INDIRECT, Z80_HL, 0},
{Z80_OR, Z80_A, Z80_REG, Z80_A, 0},
- {Z80_OR, Z80_CP, Z80_REG, Z80_B, 0},
- {Z80_OR, Z80_CP, Z80_REG, Z80_C, 0},
- {Z80_OR, Z80_CP, Z80_REG, Z80_D, 0},
- {Z80_OR, Z80_CP, Z80_REG, Z80_E, 0},
- {Z80_OR, Z80_CP, Z80_REG, Z80_H, 0},
- {Z80_OR, Z80_CP, Z80_REG, Z80_L, 0},
- {Z80_OR, Z80_CP, Z80_REG_INDIRECT, Z80_HL, 0},
- {Z80_OR, Z80_CP, Z80_REG, Z80_A, 0},
+ {Z80_CP, Z80_A, Z80_REG, Z80_B, 0},
+ {Z80_CP, Z80_A, Z80_REG, Z80_C, 0},
+ {Z80_CP, Z80_A, Z80_REG, Z80_D, 0},
+ {Z80_CP, Z80_A, Z80_REG, Z80_E, 0},
+ {Z80_CP, Z80_A, Z80_REG, Z80_H, 0},
+ {Z80_CP, Z80_A, Z80_REG, Z80_L, 0},
+ {Z80_CP, Z80_A, Z80_REG_INDIRECT, Z80_HL, 0},
+ {Z80_CP, Z80_A, Z80_REG, Z80_A, 0},
//C
{Z80_RETCC, Z80_CC_NZ, Z80_UNUSED, Z80_UNUSED, 0},
{Z80_POP, Z80_BC, Z80_UNUSED, Z80_UNUSED, 0},