Update isfast.s
This commit is contained in:
parent
df752ff7a5
commit
2c34723a97
1 changed files with 1 additions and 22 deletions
|
@ -1,22 +1 @@
|
||||||
;
|
.include "../plus4/isfast.s"
|
||||||
; Marco van den Heuvel, 2018-03-20
|
|
||||||
;
|
|
||||||
; unsigned char isfast (void);
|
|
||||||
; /* Returns 1 if the CPU is in double clock mode. */
|
|
||||||
;
|
|
||||||
|
|
||||||
.export _isfast
|
|
||||||
|
|
||||||
.include "plus4.inc"
|
|
||||||
|
|
||||||
|
|
||||||
.proc _isfast
|
|
||||||
|
|
||||||
lda TED_CLK
|
|
||||||
lsr
|
|
||||||
and #$01
|
|
||||||
ldx #$00
|
|
||||||
rts
|
|
||||||
|
|
||||||
.endproc
|
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue