Skip to content

Commit 9869d08

Browse files
authored
Putting the instruction layout in a table.
1 parent bf47ca3 commit 9869d08

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

README.md

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -31,9 +31,10 @@ Each of these instructions has one or more _micro-operations_ in _Control Memory
3131
LDR and SR make use of the _temporary register_, Register 8. And take more than one micro-operation to execute. These, as well as the branching operations can take more than one clock-cycle to be performed.
3232

3333
An instruction in memory has:
34-
* An Opcode
35-
* A Destination Register
36-
* Two source Registers
34+
35+
Opcode | Destination Register | Source Register A | Source Register B
36+
----------|---------------------------------------------------------------------------------------------
37+
7 bits | 3 bits | 3 bits | 3 bits
3738

3839
The _opcode_ of an instruction is the address in Control Memory of the first micro-operation for that instruction. The opcode is put into the _Control Address Register_, which indexes the micro-operation. The opcode is 7 bits long. The registers (DR,SA & SB) specified in the instruction are 3 bits each and index the _Register File_. There are 8 registers in the Register File. Registers 0 through 7 can be specified as the source or destination registers for instructions, whereas register 8 is used for certain less straight forward instructions that need the use of another.
3940

0 commit comments

Comments
 (0)