Return 0 if color not found

git-svn-id: svn://svn.cc65.org/cc65/trunk@1792 b7a2c559-68d2-44c3-8de9-860c34a00d81
This commit is contained in:
cuz
2002-12-20 13:40:44 +00:00
parent 67890598ac
commit 0824475804

View File

@@ -39,11 +39,11 @@ _textcolor:
; translate vdc->vic colour ; translate vdc->vic colour
vdctovic: vdctovic:
ldy #15 ldy #16
@L2: cmp $CE5C,y @L2: cmp $CE5C-1,y
beq @L3 beq @L3
dey dey
bpl @L2 bne @L2
@L3: tya @L3: tya
rts rts