summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ops.yaml12
1 files changed, 11 insertions, 1 deletions
diff --git a/ops.yaml b/ops.yaml
index 3d6f7b8..71489b5 100644
--- a/ops.yaml
+++ b/ops.yaml
@@ -3579,6 +3579,8 @@ ops:
hex: 0xDD
cat: "invalid"
op: XX
+ code: |
+ cpu_set_state(ctx, old_pc, GB_CPU_STATE_INVALID);
- id: SBC A, d8
hex: 0xDE
cat: "8-bit math"
@@ -3594,7 +3596,7 @@ ops:
h: H
c: C
code: |
- cpu_set_state(ctx, old_pc, GB_CPU_STATE_INVALID);
+ sbc_d8(ctx, old_pc + 1);
- id: RST 18H
hex: 0xDF
cat: "jumps/calls"
@@ -9503,6 +9505,14 @@ templates:
}
static void
+ sbc_d8(
+ gb_t * const ctx,
+ const uint16_t addr
+ ) {
+ sbc(ctx, mmu_rb(ctx, addr));
+ }
+
+ static void
and(
gb_t * const ctx,
const uint8_t val