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

21 lines
290 B
ArmAsm
Raw Normal View History

;
; clock_t clock (void);
;
2015-07-12 12:27:24 +00:00
.include "pce.inc"
2014-11-30 10:20:57 +00:00
2015-07-12 12:27:24 +00:00
.export _clock
2014-11-30 10:20:57 +00:00
.importzp sreg
2015-07-12 12:27:24 +00:00
.proc _clock
2015-07-12 14:40:52 +00:00
lda _tickcount+3
sta sreg+1
lda _tickcount+2
sta sreg
2014-11-30 10:20:57 +00:00
ldx _tickcount+1
lda _tickcount
rts
.endproc