summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--menu/startup.S164
1 files changed, 2 insertions, 2 deletions
diff --git a/menu/startup.S16 b/menu/startup.S16
index 63f31c00..ccdc776b 100644
--- a/menu/startup.S16
+++ b/menu/startup.S16
@@ -17,13 +17,13 @@ _start:
/* Normalize the command line. At startup 0x80 = length and
the command line starts at 0x81, but with whitespace */
movl $0x81,%esi
- movzbl (0x80),%ebx
+ movzbw (0x80),%bx
movb $0,(%bx,%si) /* Null-terminate the string */
1:
lodsb
dec %al /* Stop on null */
cmp $31,%al /* Whitespace? */
- jbe 1
+ jbe 1b
dec %si /* Unskip first character */
/* Invoke _cstart */