1
0
mirror of https://github.com/hsoft/collapseos.git synced 2024-12-25 17:28:06 +11:00

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

View File

@ -89,6 +89,11 @@ shellLoop:
; Parse command (null terminated) at HL and calls it ; Parse command (null terminated) at HL and calls it
shellParse: shellParse:
; first thing: is command empty?
ld a, (hl)
or a
ret z ; empty, nthing to do
push af push af
push bc push bc
push de push de