;--------------;\r
\r
prompt db 'BOS kernel>', 0\r
- cmd_buffer: times 255 db 0 ; 255 char command buffer\r
+ cmd_buffer: times 255 db 0 ; 255 char command buffer\r
\r
\r
\r
mov cx, 0 ; max 254 chars in command\r
.loop: ; no. 255 is always a 0\r
\r
- push cx ; better be sure it´s safe..\r
+ push cx ; better be sure it´s safe..\r
push edi\r
\r
call getc ; keyboard.inc\r
jmp chk_cmd\r
\r
.backspace:\r
- cmp cx, 0 ; can´t delete the prompt.. ;-)\r
+ cmp cx, 0 ; can´t delete the prompt.. ;-)\r
je .loop\r
dec edi ; "remove" one char from buffer\r
call backspace ; do backspace on screen\r
; done. command found ;\r
;--------------------------;\r
.done:\r
- cmp ecx, 0 ; make sure it´s more\r
+ cmp ecx, 0 ; make sure it´s more\r
je .d_quit ; then 0 chars..\r
\r
shl ebp, 2\r
mov edi, cmd_buffer\r
jmp shell\r
\r
- ret
\ No newline at end of file
+ ret\r