]> git.sur5r.net Git - cc65/commitdiff
functions returning char in A must have X cleared
authorizydorst <izydorst@b7a2c559-68d2-44c3-8de9-860c34a00d81>
Sun, 17 Jul 2005 11:32:26 +0000 (11:32 +0000)
committerizydorst <izydorst@b7a2c559-68d2-44c3-8de9-860c34a00d81>
Sun, 17 Jul 2005 11:32:26 +0000 (11:32 +0000)
git-svn-id: svn://svn.cc65.org/cc65/trunk@3528 b7a2c559-68d2-44c3-8de9-860c34a00d81

libsrc/geos/memory/cmpfstring.s

index e924febff06e7e94380344ab77f6d986005dc6b5..15011dcaa8c11b2f9853c8e8b9f76f5d7ed58b99 100644 (file)
@@ -4,7 +4,7 @@
 ;
 ; 22.12.99, 29.07.2000
 
-; void CmpFString (char length, char *dest, char* source);
+; char CmpFString (char length, char *dest, char* source);
 
            .import DoubleSPop, SetPtrXY
            .import popa
@@ -16,4 +16,7 @@ _CmpFString:
            jsr DoubleSPop
            jsr popa
            jsr SetPtrXY
-           jmp CmpFString
+           jsr CmpFString
+           bne L1
+           jmp return0
+L1:        jmp return1