From 1a415a380a942e148f1001135d9887bc8380c276 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 cec0a5a7bd..964790c8aa 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)