From 407a7b80c5624edd3baf87b285094dfc656c2494 Mon Sep 17 00:00:00 2001 From: Bananymous Date: Fri, 17 Nov 2023 12:12:37 +0200 Subject: [PATCH] Bootloader: Fix getting command line --- bootloader/command_line.S | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/bootloader/command_line.S b/bootloader/command_line.S index cec0a5a7..964790c8 100644 --- a/bootloader/command_line.S +++ b/bootloader/command_line.S @@ -23,9 +23,13 @@ read_user_command_line: cmpb $'\n', %al je .read_user_command_line_done + pushw %ax + call isprint testb %al, %al - jnz .read_user_command_line_loop + jz .read_user_command_line_loop + + popw %ax # put byte to buffer movb %al, (%di)