Fixed some bugs with inputs
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
; -----------------------------------------------------------
|
||||
|
||||
Reference in New Issue
Block a user