1
0
mirror of https://github.com/cc65/cc65.git synced 2024-07-11 14:29:11 +00:00
cc65/libsrc/pce/clock.s

24 lines
324 B
ArmAsm
Raw Normal View History

;
; Ullrich von Bassewitz, 21.09.1998
;
; clock_t clock (void);
;
2014-11-30 10:20:57 +00:00
.include "pcengine.inc"
.export _clock
.importzp sreg
.proc _clock
2014-11-30 10:20:57 +00:00
ldy #0 ; Byte 3 is always zero
sty sreg+1
sty sreg
2014-11-30 10:20:57 +00:00
ldx _tickcount+1
lda _tickcount
rts
.endproc