mirror of
https://github.com/cc65/cc65.git
synced 2026-04-23 23:17:45 +00:00
Added c16/plus4 fast(), isfast() and slow() functions, and updated the documentation accordingly.
This commit is contained in:
@@ -0,0 +1,22 @@
|
||||
;
|
||||
; 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
|
||||
|
||||
Reference in New Issue
Block a user