📄 delay.asm
字号:
* Delay.asm
**********************************************************************
* Delay *
* Simple delay routine. Delay time is equal to: *
* (7+3)+(256*5*XR)+(XR*3)+4 *
* bus cycles, or 1283*XR + 14. *
* If the bus frequency is 1.2288MHz, this is equal to just over *
* 1 ms per XR bit. *
* *
* INPUT: Cycle count in XR *
* Usage example: *
* LDX #DELAY *
* JSR Delay *
**********************************************************************
;7 bus cycles to get here
Delay: CLR BUFFER ;3 bus cycles
LoopX: DBNZ BUFFER,LoopX ;5 bus cycles
DBNZX LoopX ;3 bus cycles
Finished: RTS ;4 bus cycles
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -