init_54x.asm
来自「声音均衡器的源代码程序」· 汇编 代码 · 共 30 行
ASM
30 行
*****************************************************************************
* FILENAME: INIT_54x.ASM
* After reset, ST0, ST1, PMST and other memory mapped registers
* reconfigured at a known state.
*****************************************************************************
.include "init_54x.inc" ; contains all the initial
; values of ST0, ST1, PMST, SWWSR,
; BSCR
.mmregs
K_INIT_DP .set 0
.text
init_54:
* initialize the status and control registers
ST0 = #K_ST0
ST1 = #K_ST1
PMST = #K_PMST
* wait states for Bank Switch
BSCR = #K_BSCR ; 0 wait states for BANK
; SWITCH
* Init. the s/w wait state reg.for 2 wait states for I/O operations
dreturn
SWWSR = #K_SWWSR_IO ; 2 wait states for I/O
; operations
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?