From a386416f28c23f71c16062ae9279d9ed84ac55d4 Mon Sep 17 00:00:00 2001 From: Ain <41307858+nero@users.noreply.github.com> Date: Mon, 18 May 2020 20:17:58 +0200 Subject: [PATCH] debug: fix check if there are arguments --- rom/debug.asm | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/rom/debug.asm b/rom/debug.asm index 7d74f0e..70420ea 100644 --- a/rom/debug.asm +++ b/rom/debug.asm @@ -252,12 +252,10 @@ cmd_?: mov si, .txt cmd_g: and word [reg_fl+1], 0xfe jmp return -cmd_r: cmp di, si +cmd_r: cmp byte [si], 0 je printregs call eat_register jc .err - mov dx, si - call print16 ret .err: mov di, eat_register.emsg jmp parse_error