]> git.sur5r.net Git - cc65/commitdiff
Added an entry point to push a 32 bit long value.
authoruz <uz@b7a2c559-68d2-44c3-8de9-860c34a00d81>
Sun, 10 Jun 2012 19:15:52 +0000 (19:15 +0000)
committeruz <uz@b7a2c559-68d2-44c3-8de9-860c34a00d81>
Sun, 10 Jun 2012 19:15:52 +0000 (19:15 +0000)
git-svn-id: svn://svn.cc65.org/cc65/trunk@5705 b7a2c559-68d2-44c3-8de9-860c34a00d81

libsrc/runtime/lpush.s

index 6b7312a4aac33ff3e36291cfb16725ce5b6f92bb..0d75085fcf62e0a61ec04f95f905424db900f48b 100644 (file)
@@ -7,10 +7,13 @@
 ;
 ; push eax on stack
 ;
-       .export         push0ax, pusheax
-       .import         decsp4
-       .importzp       sp, sreg
+               .export         pushl0, push0ax, pusheax
+               .import         decsp4
+               .importzp       sp, sreg
 
+pushl0:
+        lda     #0
+        tax
 push0ax:
        ldy     #0
        sty     sreg