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:
@@ -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
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user