2 ; Ullrich von Bassewitz, 12.11.2002
4 ; time_t __fastcall__ time (time_t* timep);
10 .importzp ptr1, sreg, tmp1, tmp2
23 ; Get the time (machine dependent)
30 lda time + timespec::tv_sec+2
31 ldx time + timespec::tv_sec+3
34 lda time + timespec::tv_sec
35 ldx time + timespec::tv_sec+1
36 sta tmp1 ; Save low byte of result
38 ; Restore timep and check if it is NULL
43 sta ptr1 ; Restore timep
44 ora ptr1+1 ; timep == 0?
47 ; timep is not NULL, store the result there
62 ; If the result is != 0, return -1
72 ; Reload the low byte of the result and return
79 ; ------------------------------------------------------------------------