全部书籍

专业

应用 关于 Coach 登录 开始阅读

书籍暂未推出简体中文版——当前显示英文版。

Computer Science · 术语表

什么是 Instruction format, opcode?

又称: opcode · instruction format

Definition 10.9 University Computer Science — Year 2 · 第 10 章 — Assembly Language and the Calling Convention

Every RV32I instruction is one 32-bit word. Its opcode, the low 7 bits, with the fields funct3 and funct7, selects the operation. An instruction format is the layout of the other fields; RV32I has six, named by letter.

The six formats, bit 31 on the left. The register fields stay in the same place in every format, so the processor can read the registers before it knows the instruction; the immediates are scattered to make that possible. B and J store an even offset without its bit 0.
The six formats, bit 31 on the left. The register fields stay in the same place in every format, so the processor can read the registers before it knows the instruction; the immediates are scattered to make that possible. B and J store an even offset without its bit 0.
在原文中阅读 →