2018-2019-1 20165324 《信息安全系统设计基础》第四周学习
知识点学习
-
Y86-64指令集体系结构
- 15个程序寄存器
- 3个条件码
- 内存 字节数组
- 状态码Stat
-
Y86-64指令
- movq指令
- 整数操作指令
- 跳转指令
- 条件传送指令
- pushq popq 入栈 出栈
- halt指令停止指令的执行
-
指令编码
- 字节级编码,需要1~10个字节不等
- 每条指令的第一个字节表明指令的类型。这个字节分成两部分:高4位是代码部分;低4位是功能部分
- 15个程序寄存器对应一个范围在0到0xE之间的寄存器标识符。
- 指令集的重要性质为:字节编码必须有唯一的解释。任意一个字节序列为一个唯一的指令序列的编码,或者为不合法的字节序列
-
Y86-64异常
- 代码值1,命名为AOK,表示程序执行正常。
- 代码值2,命名为HLT,表示处理器执行了一条halt指令。
- 代码值3,命名为ADR, 表示遇到了非法地址。
- 代码值4,命名为INS,表示遇到了非法指令。
-
逻辑设计和硬件控制语言HCL
- 逻辑门:与或非。
- 组合电路和HCL布尔表达式