📄 util.asm
字号:
;/*****************************************************************************/
;/* PROJECT : RF key demonstrator (ASK or FSK) */
;/* Functions: tempo */
;/*****************************************************************************/
;/*****************************************************************************/
;/* tempo */
;/* Description : it waits for n cpu cycles */
;/* In : H:X */
;/* Out : TMOD, TSC */
;/* local variables : */
;/*****************************************************************************/
Tempo:
psha
lda TSC ;
and #%01111111 ; clear tof
ora #%00110000 ; stop the counter,
sta TSC ; while keeping prescaler same
sthx tmodh
bclr 5,TSC ; start the timer
brclr 7,TSC,* ; wait until the tempo is expired
pula
rts
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -