]> git.sur5r.net Git - cc65/commitdiff
Added tosicmp0, a special entry point that clears the X register.
authoruz <uz@b7a2c559-68d2-44c3-8de9-860c34a00d81>
Fri, 14 Aug 2009 22:08:28 +0000 (22:08 +0000)
committeruz <uz@b7a2c559-68d2-44c3-8de9-860c34a00d81>
Fri, 14 Aug 2009 22:08:28 +0000 (22:08 +0000)
git-svn-id: svn://svn.cc65.org/cc65/trunk@4005 b7a2c559-68d2-44c3-8de9-860c34a00d81

libsrc/runtime/icmp.s

index c3c37e7269ecb89a5886dd166c03eea5e25080d4..70bcb76bda607c023aba4e22ce46f74106a3d40e 100644 (file)
@@ -5,10 +5,13 @@
 ; Integer compare function - used by the compare operators
 ;
 
-       .export         tosicmp
-       .importzp       sp, sreg
+       .export         tosicmp, tosicmp0
+       .importzp       sp, sreg
 
 
+tosicmp0:
+        ldx     #$00
+
 tosicmp:
        sta     sreg
        stx     sreg+1          ; Save ax