1
0
mirror of https://github.com/cc65/cc65.git synced 2026-04-25 22:18:27 +00:00

more hacking

This commit is contained in:
mrdudz
2014-11-30 11:20:57 +01:00
parent 4275b82117
commit 1365afa845
7 changed files with 49 additions and 16 deletions
+10 -10
View File
@@ -3,21 +3,21 @@
;
; clock_t clock (void);
;
.include "pcengine.inc"
.export _clock
.importzp sreg
.include "pcengine.inc"
.export _clock
.importzp sreg
.proc _clock
ldy #0 ; Byte 3 is always zero
sty sreg+1
sty sreg
ldy #0 ; Byte 3 is always zero
sty sreg+1
sty sreg
ldx _tickcount+1
lda _tickcount
rts
ldx _tickcount+1
lda _tickcount
rts
.endproc