mirror of
https://github.com/hsoft/collapseos.git
synced 2024-12-26 16:08:06 +11:00
parse: fix option word default value
Previously, an optional word argument would only have its first byte set to zero.
This commit is contained in:
parent
93981e00eb
commit
14cc2fb785
@ -92,12 +92,13 @@ parseArgs:
|
|||||||
push hl
|
push hl
|
||||||
push ix
|
push ix
|
||||||
|
|
||||||
ld b, PARSE_ARG_MAXCOUNT
|
|
||||||
.loop:
|
|
||||||
; init the arg value to a default 0
|
; init the arg value to a default 0
|
||||||
xor a
|
xor a
|
||||||
ld (ix), a
|
ld (ix), a
|
||||||
|
ld (ix+1), a
|
||||||
|
ld (ix+2), a
|
||||||
|
ld b, PARSE_ARG_MAXCOUNT
|
||||||
|
.loop:
|
||||||
ld a, (hl)
|
ld a, (hl)
|
||||||
; is this the end of the line?
|
; is this the end of the line?
|
||||||
or a ; cp 0
|
or a ; cp 0
|
||||||
|
Loading…
Reference in New Issue
Block a user