简体   繁体   English

为什么IAS的指令存储器有2个段

[英]Why does instruction memory of IAS has 2 segments

Each number in IAS is represented by a sign bit and a 39-bit value. IAS中的每个数字都由一个符号位和一个39位值表示。 Each instruction consists of an 8-bit operation code (opcode) specifying the operation to be performed and a 12-bit address as shown in picture 每条指令由一个8位操作码(操作码)指定要执行的操作和一个12位地址(如图所示)组成

So, why does instruction word has left and right side, do they corelate, can one side be executed and other not? 那么,指令字为什么有左右两边,它们成串,一侧可以执行而另一侧不能执行?

why does instruction word has left and right side 为什么指令字有左右两边

It's not actually sides, it's 2 independent instructions. 它实际上不是侧面,它是2条独立的指令。 They are packed this way to save half of the space used by code. 它们以这种方式打包以节省代码使用的一半空间。

The machine addresses 40-bit words. 机器寻址40位字。 The instruction set is so simple, and addressable memory is so small, that it's possible to keep 2 instructions per word. 指令集非常简单,可寻址存储器非常小,每个字可以保留2条指令。

do they corelate 他们是否核心化

Usually they run sequentially. 通常它们按顺序运行。

can one side be executed and other not? 可以执行一侧而另一侧不执行吗?

Sometimes. 有时。 If the first instruction is a jump (conditional or not), the machine will not execute the second one because it jumps instead. 如果第一条指令是跳转(有条件的或没有条件的),则机器将不执行第二条指令,因为它会跳转。 Similarly, jumps have 2 forms/each, one form jumps to the second instruction of the target address, when that happens, execution goes to the second instruction and the machine won't execute the first one. 同样,跳转有2种形式/每种形式,一种形式跳转到目标地址的第二条指令,发生这种情况时,执行将转到第二条指令,而机器将不会执行第一条指令。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM