mirror of
https://github.com/cc65/cc65.git
synced 2026-04-25 22:18:27 +00:00
more hacking
This commit is contained in:
+10
-10
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user