]> git.sur5r.net Git - cc65/blob - libsrc/apple2/systime.s
5711fccaedc88119ac191a943ed066e23d9666bb
[cc65] / libsrc / apple2 / systime.s
1 ;
2 ; Ullrich von Bassewitz, 12.11.2002
3 ;
4 ; time_t _systime (void);
5 ; /* Similar to time(), but:
6 ;  *   - Is not ISO C
7 ;  *   - Does not take the additional pointer
8 ;  *   - Does not set errno when returning -1
9 ;  */
10 ;
11
12         .export         __systime
13
14         .include        "zeropage.inc"
15
16 __systime:
17         lda     #$FF
18         tax
19         sta     sreg
20         sta     sreg+1
21         rts                     ; Return -1