mirror of
https://github.com/foxsen/archbase.git
synced 2026-04-26 11:30:09 +08:00
initial import to public repository
This commit is contained in:
14
materials/chapter4/mips_reg.csv
Normal file
14
materials/chapter4/mips_reg.csv
Normal file
@@ -0,0 +1,14 @@
|
||||
寄存器编号,O32助记符,N32/N64助记符,使用约定
|
||||
0,zero,zero,总是为0
|
||||
1,at,at,汇编暂存器
|
||||
2~3,"v0,v1","v0,v1",子程序返回值
|
||||
4~7,a0~a3,a0~a3,子程序的前几个参数
|
||||
8~11,t0~t3,a4~a7,N32作为参数,O32作为不需保存的暂存器
|
||||
12~15,t4~t7,t0~t3,不需保存的暂存器,但N32和O32命名不同
|
||||
16~23,s0~s7,s0~s7,寄存器变量,过程调用时需要存储和恢复
|
||||
24~25,"t8,t9","t8,t9",暂存器
|
||||
26~27,"k0,k1","k0,k1",为异常处理保留
|
||||
28,gp,gp,全局指针
|
||||
29,sp,sp,栈指针
|
||||
30,s8/fp,s8/fp,寄存器变量,或作为帧指针
|
||||
31,ra,ra,子程序返回地址
|
||||
|
Reference in New Issue
Block a user