Bootloader: Fix getting command line
This commit is contained in:
parent
8b4f169d0f
commit
407a7b80c5
|
@ -23,9 +23,13 @@ read_user_command_line:
|
||||||
cmpb $'\n', %al
|
cmpb $'\n', %al
|
||||||
je .read_user_command_line_done
|
je .read_user_command_line_done
|
||||||
|
|
||||||
|
pushw %ax
|
||||||
|
|
||||||
call isprint
|
call isprint
|
||||||
testb %al, %al
|
testb %al, %al
|
||||||
jnz .read_user_command_line_loop
|
jz .read_user_command_line_loop
|
||||||
|
|
||||||
|
popw %ax
|
||||||
|
|
||||||
# put byte to buffer
|
# put byte to buffer
|
||||||
movb %al, (%di)
|
movb %al, (%di)
|
||||||
|
|
Loading…
Reference in New Issue