Skip to content

Commit

Permalink
Merge pull request #3 from organic-nailer/patch-1
Browse files Browse the repository at this point in the history
命令コードの順番の修正
  • Loading branch information
kentaroy47 authored Nov 24, 2022
2 parents 2ebaf23 + ed53cbd commit ae3fc5e
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 ae3fc5e

Please sign in to comment.