mirror of
https://github.com/cc65/cc65.git
synced 2024-09-28 10:55:43 +00:00
21 lines
297 B
ArmAsm
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
|