Fixed an issue with the input where you can't backspace properly

This commit is contained in:
deadvey
2026-02-14 16:04:57 +00:00
parent 26ee45eb88
commit cfe570c531
3 changed files with 28 additions and 7 deletions

View File

@@ -57,8 +57,8 @@ keyboard_display_input:
ret ; Return to the parent function (whatever that may be)
.backspace:
call .move_cursor_back ; then .move_cursor_back
call .loop ; Else .loop
jmp .move_cursor_back ; then .move_cursor_back
jmp .loop ; Else .loop
.move_cursor_back:
mov ah, 0Eh
@@ -71,7 +71,7 @@ keyboard_display_input:
int 10h
dec di
jmp keyboard_display_input
jmp .loop
.print_current_input: ; Echo back that character and return the key inputing
stosb