1
0
mirror of https://github.com/cc65/cc65.git synced 2024-07-10 23:29:05 +00:00
cc65/libsrc/pce/clock.s
2015-07-12 14:27:24 +02:00

21 lines
297 B
ArmAsm

;
; clock_t clock (void);
;
.include "pce.inc"
.export _clock
.importzp sreg
.proc _clock
ldy #0 ; Byte 3 is always zero
sty sreg+1
sty sreg
ldx _tickcount+1
lda _tickcount
rts
.endproc