Fixed some bugs with inputs

This commit is contained in:
deadvey
2026-03-08 22:07:21 +00:00
parent 7a9b82d57c
commit 88716c0b64
10 changed files with 199 additions and 32 deletions

View File

@@ -7,10 +7,12 @@ util_cat:
add si, 4 ; Move si to after 'CAT'
call disk_load_file
jc .done ; if file failed to load, just quit
mov si, file_buffer
mov cx, [file_length]
call text_print_raw
.done
popa
ret
@@ -34,6 +36,7 @@ util_basic:
; TODO make this more consistent to account for double spaces
;add si, 3 ; Move si to after 'BAS'
call disk_load_file
jc .done
mov si, file_buffer
@@ -41,6 +44,7 @@ util_basic:
mov si, 0
call basic_run_basic
.done
popa
ret