summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLeo C2018-11-29 20:16:37 +0100
committerLeo C2018-11-29 20:16:37 +0100
commita768c06283f4f92177fbeea7c1da0dcb83a165f1 (patch)
tree60704193777ab78e5a6296c9c3d43e2fafdfebdc
parentf33961b549672c23d768bdfe2c2880db9a58ff6e (diff)
downloadddt180-a768c06283f4f92177fbeea7c1da0dcb83a165f1.zip
bp_get_condition: eliminate expr_p2
-rw-r--r--ddt180.z8015
1 files changed, 7 insertions, 8 deletions
diff --git a/ddt180.z80 b/ddt180.z80
index e624c8b..b7503fa 100644
--- a/ddt180.z80
+++ b/ddt180.z80
@@ -1780,20 +1780,19 @@ bp_get_condition:
ld de,expr_bufe
call cp_hl_de
jr nc,error12
- pop hl
- ld (expr_p2),hl
- pop de
- ex de,hl
+ pop de
+ pop hl
+ push de
ldir
- xor a
- ld (de),a
- inc de
ex de,hl
+ ld (hl),c ; trailing 0
+ inc hl
ld (expr_p1),hl
- ld hl,(expr_p2)
+ pop hl
ret
;-------------------------------------------------------------------------------
+; Breakpoint handling routine.
bpddtz:
ld (reg.l),hl