Skip to content

Commit

Permalink
命令コードの順番の修正
Browse files Browse the repository at this point in the history
  • Loading branch information
organic-nailer authored Nov 24, 2022
1 parent 2ebaf23 commit ed53cbd
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions 09_complier/compiler.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
"""
命令セット
R型 [7:0]opcode, [12:8]rd1, [17:13]rd2, [22:18] rw, [31:23] 空き (計算に使う命令)
L型 [7:0]opcode==4, [17:8]memory, [22:18] r, [31:23]空き (データメモリからレジスタにデータ書き込みする命令)
W型 [7:0]opcode==5, [17:8]memory, [22:18] r, [31:23]空き (レジスタからデータメモリにデータ書き込みする命令)
L型 [7:0]opcode==4, [8:12] r, [22:13]memory, [31:23]空き (データメモリからレジスタにデータ書き込みする命令)
W型 [7:0]opcode==5, [8:12] r, [22:13]memory, [31:23]空き (レジスタからデータメモリにデータ書き込みする命令)
単純にR型は
opcode==0: 足し算
Expand Down

0 comments on commit ed53cbd

Please sign in to comment.