shell: don't parse empty cmds

This commit is contained in:
Virgil Dupras 2019-07-13 15:34:43 -04:00
parent 951dd2206d
commit 3861670bcc
1 changed files with 5 additions and 0 deletions

View File

@ -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