diff options
-rw-r--r-- | ops.yaml | 12 |
1 files changed, 11 insertions, 1 deletions
@@ -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 |