summaryrefslogtreecommitdiff
path: root/ops.yaml
diff options
context:
space:
mode:
Diffstat (limited to 'ops.yaml')
-rw-r--r--ops.yaml6
1 files changed, 5 insertions, 1 deletions
diff --git a/ops.yaml b/ops.yaml
index b1d2ad3..416cff3 100644
--- a/ops.yaml
+++ b/ops.yaml
@@ -3306,7 +3306,7 @@ ops:
h:
c:
code: |
- cpu_ww(ctx, RW_PC, cpu_rw(ctx, RW_PC) + 3);
+ cpu_ww(ctx, RW_PC, old_pc + 3);
call_a16(ctx, old_pc + 1);
- id: ADC A, d8
hex: 0xCE
@@ -10060,6 +10060,10 @@ templates:
// push pc
push_rw(ctx, RW_PC);
+ if (ctx->config && ctx->config->on_rst) {
+ ctx->config->on_rst(ctx, addr);
+ }
+
// jump
cpu_ww(ctx, RW_PC, addr);
}