CA dis4 notes
来源:互联网 发布:师洋淘宝骂人 编辑:程序博客网 时间:2024/06/06 18:30
3.15
notes重点:
syscall的原理
科普一些中断的知识
当中断发生的时候,有三个register会参与,分别是 Status Register,Cause Register,Exception PC (EPC) Register。
因为 程序需要记录,当前指令的地址(一边跳转回去),中断发生的原因,和屏蔽其他中断
Status Register: 屏蔽其他中断位
cause register: 记录 中断发生的原因
epc: 记录 当前指令的地址,以便中断结束后 返回
read和print
li $v0,8
syscall
li $v0,4
PC里存了什么:
当前执行到的代码的下一条代码的地址
mips程序练习:
.data
STRING: .word 0:10
0:10
数量 10个,不包括最后一个
会自动在11个的地方停止输入
.text
你的代码
0 0
- CA dis4 notes
- ca
- ca
- ca
- ca
- CA
- CA
- ca
- Notes
- notes
- Notes
- notes
- notes
- notes
- notes
- Notes
- notes
- Notes
- hud 1372 Knight Moves【bfs】
- unity3d ugui 文字背景色
- Jackson 框架,轻易转换JSON
- 第35讲项目1——另类求和
- JSP里ContentType ,charset和pageEncoding的理解与区别
- CA dis4 notes
- 如何在静音模式下播放声音(需要设置AVAudioSession)
- Markdown使用技巧总结
- ZeroC Ice IceGrid Node和IceGrid
- 为什么 Java 只有值传递,但 C# 既有值传递,又有引用传递,这种语言设计有哪些好处?
- UI组件:PopupWindows的详细使用(一)
- Andrew Ng机器学习笔记之局部加权回归
- 使用 ContentProviderOperation 来提升性能
- 准确率 召回率 调和平均数等