From 5c0235eb874ece49b35ffd5b8cd3db43a037bc82 Mon Sep 17 00:00:00 2001 From: Shawn Sijnstra <78007189+sijnstra@users.noreply.github.com> Date: Tue, 23 Jan 2024 21:28:21 +1100 Subject: [PATCH] tab updates --- romdisk/expr.asm | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/romdisk/expr.asm b/romdisk/expr.asm index a512532..5ac5a2e 100644 --- a/romdisk/expr.asm +++ b/romdisk/expr.asm @@ -33,10 +33,10 @@ expr_main: ; Retrieve the number given as a parameter inc hl inc hl ; skip the first pointer - ld e,(hl) ;grab 2nd pointer + ld e,(hl) ;grab 2nd pointer inc hl ld d,(hl) - ex de,hl ;pointer in HL + ex de,hl ;pointer in HL ; Check that argc is at least 2 (command itself is part of argc) ; This may need to change in future as we allow to evaluate full expressions ld a, c @@ -45,8 +45,8 @@ expr_main: jp nz, _expr_do_string ;can only be string related function now _expr_do_math: - call parse_int ;strutils - accepts 16 bit dec or hex input at HL - or a ;0 is ok, 1 is overflow, 2 is bad digit + call parse_int ;strutils - accepts 16 bit dec or hex input at HL + or a ;0 is ok, 1 is overflow, 2 is bad digit jr nz,_expr_usage ; Routine displaying the value of HL in decimal then hex @@ -97,14 +97,14 @@ _expr_do_string: jr nz, _expr_usage ld a,(hl) cp 'l' - jr nz,_expr_error ;it's not the 'length' command so invalid parameter. - ex de,hl ;hl back to pointer table - inc hl ; we didn't inc before - ld e,(hl) ;grab 3rd pointer + jr nz,_expr_error ;it's not the 'length' command so invalid parameter. + ex de,hl ;hl back to pointer table + inc hl ; we didn't inc before + ld e,(hl) ;grab 3rd pointer inc hl ld d,(hl) - ex de,hl ;pointer in HL - call strlen ;returns answer in BC + ex de,hl ;pointer in HL + call strlen ;returns answer in BC ld h,b ld l,c jp _expr_print_result