From 14cc2fb7857eda96024978d29c5c93e798502d14 Mon Sep 17 00:00:00 2001 From: Virgil Dupras Date: Fri, 14 Jun 2019 21:10:18 -0400 Subject: [PATCH] parse: fix option word default value Previously, an optional word argument would only have its first byte set to zero. --- kernel/parse.asm | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/kernel/parse.asm b/kernel/parse.asm index b921379..1bd81b2 100644 --- a/kernel/parse.asm +++ b/kernel/parse.asm @@ -92,12 +92,13 @@ parseArgs: push hl push ix - ld b, PARSE_ARG_MAXCOUNT -.loop: ; init the arg value to a default 0 xor a ld (ix), a - + ld (ix+1), a + ld (ix+2), a + ld b, PARSE_ARG_MAXCOUNT +.loop: ld a, (hl) ; is this the end of the line? or a ; cp 0