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

@@ -171,6 +171,7 @@ disk_clear_output_buffer:
; OUT
; data_buffer: file contents
; TODO use predefined data for calculations
; carry flag: set if failed to load file
disk_load_file:
pusha
call string_length ; cl = string length
@@ -227,11 +228,15 @@ disk_load_file:
.file_not_found:
mov si, file_not_found
call os_print_string
jmp .done
jmp .done_fail
.filename_too_long:
mov si, too_long_filename
call os_print_string
jmp .done
jmp .done_fail
.done_fail:
popa
stc
ret
.done:
popa
ret