From 0824475804d06ba67bd5827a1a87ebf2fb57eae0 Mon Sep 17 00:00:00 2001 From: cuz Date: Fri, 20 Dec 2002 13:40:44 +0000 Subject: [PATCH] Return 0 if color not found git-svn-id: svn://svn.cc65.org/cc65/trunk@1792 b7a2c559-68d2-44c3-8de9-860c34a00d81 --- libsrc/c128/color.s | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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 -- 2.39.5