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
vdctovic:
ldy #15
@L2: cmp $CE5C,y
ldy #16
@L2: cmp $CE5C-1,y
beq @L3
dey
bpl @L2
bne @L2
@L3: tya
rts