1
0
mirror of https://github.com/cc65/cc65.git synced 2024-07-02 15:29:33 +00:00
cc65/libsrc/pce/clock.s
2015-07-12 16:40:52 +02:00

21 lines
290 B
ArmAsm

;
; clock_t clock (void);
;
.include "pce.inc"
.export _clock
.importzp sreg
.proc _clock
lda _tickcount+3
sta sreg+1
lda _tickcount+2
sta sreg
ldx _tickcount+1
lda _tickcount
rts
.endproc