]> git.sur5r.net Git - cc65/commitdiff
fixed timep handling in time() 48/head
authorEmanuele Fornara <efornara@users.sourceforge.net>
Wed, 2 Oct 2013 19:55:01 +0000 (20:55 +0100)
committerEmanuele Fornara <efornara@users.sourceforge.net>
Wed, 2 Oct 2013 19:55:01 +0000 (20:55 +0100)
libsrc/common/time.s

index 2157eb49fbc2871ea5b66b86bf6c7eddfe5a4ade..140d47e2c344b6164bc5ef1ee4a97848a250820c 100644 (file)
 ; Restore timep and check if it is NULL
 
         pla
-        sta     ptr1
+        sta     ptr1+1
         pla
-        sta     ptr1+1          ; Restore timep
-        ora     ptr1            ; timep == 0?
+        sta     ptr1            ; Restore timep
+        ora     ptr1+1          ; timep == 0?
         beq     @L1
 
 ; timep is not NULL, store the result there