Browse Source

Fix lacking buffer reset on enter

special_first_anniversary_edition
Patrick Jakobsen 7 years ago
parent
commit
66ae9b2be9
  1. 9
      CLI/CLI.nasm
  2. 1
      kernel.nasm

9
CLI/CLI.nasm

@ -51,6 +51,7 @@ CLI_DELETE:
;Move NULL into the last character of the line (delete)
mov al, 0x0
add bx, CLI_Command_Buffer ; address+offset = destination
mov [bx], al
; Go back one space
@ -69,6 +70,14 @@ CLI_DELETE:
popa
ret
; Probably activated with the 'Enter' button.
CLI_CONFIRM_INPUT:
mov bx, 0
mov [CLI_Command_Counter], bx
mov [CLI_Command_Buffer], bx
ret
; Executes the command.
CLI_EXECUTE:
ret

1
kernel.nasm

@ -99,6 +99,7 @@ wait_for_key_os:
.enter_hit:
call CLI_CONFIRM_INPUT
jmp .command_interpreter
.no_str:

Loading…
Cancel
Save