📄 a33000.s
字号:
/************************************************************* * File: lib/a33000.s * Purpose: Part of C runtime library * Author: Phil Bunce (pjb@carmel.com) * Revision History: * 970304 Start of revision history */#include <mips.h>CACHE_CFG = (CR_IBLK_4|CR_DBLK_4)WAIT_CFG = ((6<<CR_IOWAITSHFT)|(6<<CR_PWAITSHFT))MEM_CFG = (CR_RDYGEN|CR_RFSHEN|CR_DRAMEN) ############# 33000 ################# .globl a33000init .ent a33000inita33000init: beq a0,zero,1f j c33000init 1: # must be a LR33000 li t0,375 # 512 rows in 8ms = 15us sw t0,M_RTIC # refresh # turn on the RAM li t0,(CACHE_CFG|WAIT_CFG|MEM_CFG) sw t0,M_CFGREG # delay to allow RAM to stabilize li t0,10001: subu t0,1 bne t0,zero,1b # select the correct cache flushing routines la s0,r33k_flush j ra .end a33000init
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -