mirror of
https://github.com/hsoft/collapseos.git
synced 2024-11-27 14:48:06 +11:00
basic: don't choke on ':' in '"' literals
This commit is contained in:
parent
5b155a5c15
commit
43f4c5200e
@ -56,6 +56,7 @@ toEnd:
|
|||||||
cp ':'
|
cp ':'
|
||||||
jr z, .havesep
|
jr z, .havesep
|
||||||
inc hl
|
inc hl
|
||||||
|
call skipQuoted
|
||||||
jr toEnd
|
jr toEnd
|
||||||
.havesep:
|
.havesep:
|
||||||
inc a ; unset Z
|
inc a ; unset Z
|
||||||
|
@ -11,5 +11,22 @@ spitQuoted:
|
|||||||
inc hl
|
inc hl
|
||||||
cp '"'
|
cp '"'
|
||||||
ret z
|
ret z
|
||||||
|
or a
|
||||||
|
ret z
|
||||||
call stdioPutC
|
call stdioPutC
|
||||||
jr .loop
|
jr .loop
|
||||||
|
|
||||||
|
; Same as spitQuoted, but without the spitting
|
||||||
|
skipQuoted:
|
||||||
|
ld a, (hl)
|
||||||
|
cp '"'
|
||||||
|
ret nz
|
||||||
|
inc hl
|
||||||
|
.loop:
|
||||||
|
ld a, (hl)
|
||||||
|
inc hl
|
||||||
|
cp '"'
|
||||||
|
ret z
|
||||||
|
or a
|
||||||
|
ret z
|
||||||
|
jr .loop
|
||||||
|
Loading…
Reference in New Issue
Block a user