From: cuz Date: Fri, 20 Dec 2002 13:40:44 +0000 (+0000) Subject: Return 0 if color not found X-Git-Tag: V2.12.0~1879 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=0824475804d06ba67bd5827a1a87ebf2fb57eae0;p=cc65 Return 0 if color not found git-svn-id: svn://svn.cc65.org/cc65/trunk@1792 b7a2c559-68d2-44c3-8de9-860c34a00d81 --- diff --git a/libsrc/c128/color.s b/libsrc/c128/color.s index e6a488245..5ee12431b 100644 --- a/libsrc/c128/color.s +++ b/libsrc/c128/color.s @@ -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