본문 바로가기
csapp

4.1 The Y86-64 Instruction Set Architecture

by 정구지개발자 2023. 5. 2.
728x90

4.1.1 Programmer-Visible State

  • As Figure 4.1 illustrates, each instruction in a Y86-64 program can read and modify some part of the processor state.
  • Register %rsp is used as a stack pointer by the push, pop, call, and return instructions
  • There are three single-bit condition codes, ZF, SF, and OF, storing information about the effect of the most recent arithmetic or logical instruction. The program counter (PC) holds the address of the instruction currently being executed.
  • The memory is conceptually a large array of bytes, holding both program and data.
  • A final part of the program state is a status code Stat, indicating the overall state of program execution. It will indicate either normal operation or that some sort of exception has occurred

 

4.1.2 Y86-64 Instructions

 

4.1.3 Instruction Encoding

 

4.1.4 Y86-64 Exceptions

728x90

'csapp' 카테고리의 다른 글

4.2.2 Combinational Circuits and HCL Boolean Expressions  (0) 2023.05.03
4.2 Logic Design and the Hardware Control Language HCL  (0) 2023.05.03
Stack Corruption Detection  (0) 2023.04.28
3.9.2 Unions  (0) 2023.04.22
3.8.3 Nested Arrays  (0) 2023.04.19

댓글