fixed timep handling in time()

This commit is contained in:
Emanuele Fornara
2013-10-02 20:55:01 +01:00
parent 227ed9bdcd
commit 35388418fd

View File

@@ -27,10 +27,10 @@
; Restore timep and check if it is NULL ; Restore timep and check if it is NULL
pla pla
sta ptr1 sta ptr1+1
pla pla
sta ptr1+1 ; Restore timep sta ptr1 ; Restore timep
ora ptr1 ; timep == 0? ora ptr1+1 ; timep == 0?
beq @L1 beq @L1
; timep is not NULL, store the result there ; timep is not NULL, store the result there