From: Christoffer Bubach Date: Mon, 17 Jul 2017 03:24:32 +0000 (+0200) Subject: Update shell.asm X-Git-Url: https://git.wirehaze.ovh/BOS.git/commitdiff_plain/a2421e39f4c4ce2d834a1850c706153e5bf04af8 Update shell.asm --- diff --git a/kernel/shell/shell.asm b/kernel/shell/shell.asm index ea157ae..646ca45 100755 --- a/kernel/shell/shell.asm +++ b/kernel/shell/shell.asm @@ -12,7 +12,7 @@ ;--------------; prompt db 'BOS kernel>', 0 - cmd_buffer: times 255 db 0 ; 255 char command buffer + cmd_buffer: times 255 db 0 ; 255 char command buffer @@ -39,7 +39,7 @@ shell: mov cx, 0 ; max 254 chars in command .loop: ; no. 255 is always a 0 - push cx ; better be sure it´s safe.. + push cx ; better be sure it´s safe.. push edi call getc ; keyboard.inc @@ -74,7 +74,7 @@ shell: jmp chk_cmd .backspace: - cmp cx, 0 ; can´t delete the prompt.. ;-) + cmp cx, 0 ; can´t delete the prompt.. ;-) je .loop dec edi ; "remove" one char from buffer call backspace ; do backspace on screen @@ -154,7 +154,7 @@ chk_cmd: ; done. command found ; ;--------------------------; .done: - cmp ecx, 0 ; make sure it´s more + cmp ecx, 0 ; make sure it´s more je .d_quit ; then 0 chars.. shl ebp, 2 @@ -186,4 +186,4 @@ chk_cmd: mov edi, cmd_buffer jmp shell - ret \ No newline at end of file + ret