debug: commands are now always typed uppercase

This commit is contained in:
Nero 2020-05-18 23:12:58 +02:00
parent d264404bb1
commit 8056ad5cfb
1 changed files with 7 additions and 7 deletions

View File

@ -102,7 +102,7 @@ loop: ; show prompt
; read data
mov byte [inmin], 1
mov byte [inmax], 16
mov word [ingetc], getc
mov word [ingetc], getcu
call gets
pushf
call crlf
@ -142,11 +142,11 @@ return: ; restore stack pointer
; Expects DI to mark end of command
runcmd: mov si, inbuf
lodsb
cmp al, 'g'
cmp al, 'G'
je cmd_g
cmp al, 'r'
cmp al, 'R'
je cmd_r
cmp al, 't'
cmp al, 'T'
je cmd_t
cmp al, '?'
je cmd_?
@ -156,9 +156,9 @@ cerr: mov al, '?'
cmd_?: mov si, .txt
jmp putcs
.txt: db "g Go", 0x0A, 0x0D
db "r Print register values", 0x0A, 0x0D
db "t Single-Step", 0x0A, 0x0D
.txt: db "G Go", 0x0A, 0x0D
db "R[r] Print register values", 0x0A, 0x0D
db "T Single-Step", 0x0A, 0x0D
db 0
cmd_g: and word [reg_fl+1], 0xfe