1
1
mirror of https://github.com/foxsen/archbase.git synced 2026-02-04 10:54:05 +08:00
Files
archbase/materials/chapter4/mips_reg.csv
2021-10-27 19:14:51 +08:00

15 lines
615 B
CSV
Raw Permalink Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
寄存器编号,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,子程序返回地址