]> git.sur5r.net Git - cc65/commitdiff
Return 0 if color not found
authorcuz <cuz@b7a2c559-68d2-44c3-8de9-860c34a00d81>
Fri, 20 Dec 2002 13:40:44 +0000 (13:40 +0000)
committercuz <cuz@b7a2c559-68d2-44c3-8de9-860c34a00d81>
Fri, 20 Dec 2002 13:40:44 +0000 (13:40 +0000)
git-svn-id: svn://svn.cc65.org/cc65/trunk@1792 b7a2c559-68d2-44c3-8de9-860c34a00d81

libsrc/c128/color.s

index e6a488245469b708c6417620dbd6e8754ef3e9f6..5ee12431bc32232083c8eec40e5089349b7b091b 100644 (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