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

@@ -1950,8 +1950,9 @@ do_input:
.number_var:
mov ax, .tmpstring ; Get input from the user
mov bx, 6
mov bx, 20
call keyboard_display_input
jc .end
mov ax, .tmpstring
call string_length
@@ -1973,8 +1974,6 @@ do_input:
call os_print_newline
jmp mainloop
.string_var:
mov ax, 128
mul bx
@@ -1987,8 +1986,9 @@ do_input:
jmp mainloop
.tmpstring times 6 db 0
.tmpstring times 20 db 0
.end
ret
; -----------------------------------------------------------