From 3861670bcc50003efcc220e6249775403cb6ed54 Mon Sep 17 00:00:00 2001 From: Virgil Dupras Date: Sat, 13 Jul 2019 15:34:43 -0400 Subject: [PATCH] shell: don't parse empty cmds --- kernel/shell.asm | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/kernel/shell.asm b/kernel/shell.asm index dd597b0..d0d8b1c 100644 --- a/kernel/shell.asm +++ b/kernel/shell.asm @@ -89,6 +89,11 @@ shellLoop: ; Parse command (null terminated) at HL and calls it shellParse: + ; first thing: is command empty? + ld a, (hl) + or a + ret z ; empty, nthing to do + push af push bc push de