mirror of
https://github.com/cc65/cc65.git
synced 2024-11-01 11:04:34 +00:00
22 lines
299 B
ArmAsm
22 lines
299 B
ArmAsm
;
|
|
; Marco van den Heuvel, 2018-03-19
|
|
;
|
|
; unsigned char isfast (void);
|
|
; /* Returns 1 if the CPU is in 2MHz mode. */
|
|
;
|
|
|
|
.export _isfast
|
|
|
|
.include "c128.inc"
|
|
|
|
|
|
.proc _isfast
|
|
|
|
lda VIC_CLK_128
|
|
and #$01
|
|
ldx #$00
|
|
rts
|
|
|
|
.endproc
|
|
|