aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--instr-table.tex12
-rwxr-xr-xparse-opcodes1
2 files changed, 7 insertions, 6 deletions
diff --git a/instr-table.tex b/instr-table.tex
index efea3ac..70d5157 100644
--- a/instr-table.tex
+++ b/instr-table.tex
@@ -221,7 +221,7 @@
\multicolumn{1}{c|}{rs1} &
\multicolumn{1}{c|}{000} &
\multicolumn{1}{c|}{imm[4:0]} &
-\multicolumn{1}{c|}{0100011} & SB rs1,rs2 \\
+\multicolumn{1}{c|}{0100011} & SB rs1,rs2,imm \\
\cline{2-11}
@@ -231,7 +231,7 @@
\multicolumn{1}{c|}{rs1} &
\multicolumn{1}{c|}{001} &
\multicolumn{1}{c|}{imm[4:0]} &
-\multicolumn{1}{c|}{0100011} & SH rs1,rs2 \\
+\multicolumn{1}{c|}{0100011} & SH rs1,rs2,imm \\
\cline{2-11}
@@ -241,7 +241,7 @@
\multicolumn{1}{c|}{rs1} &
\multicolumn{1}{c|}{010} &
\multicolumn{1}{c|}{imm[4:0]} &
-\multicolumn{1}{c|}{0100011} & SW rs1,rs2 \\
+\multicolumn{1}{c|}{0100011} & SW rs1,rs2,imm \\
\cline{2-11}
@@ -590,7 +590,7 @@
\multicolumn{1}{c|}{rs1} &
\multicolumn{1}{c|}{011} &
\multicolumn{1}{c|}{imm[4:0]} &
-\multicolumn{1}{c|}{0100011} & SD rs1,rs2 \\
+\multicolumn{1}{c|}{0100011} & SD rs1,rs2,imm \\
\cline{2-11}
@@ -1196,7 +1196,7 @@
\multicolumn{1}{c|}{rs1} &
\multicolumn{1}{c|}{010} &
\multicolumn{1}{c|}{imm[4:0]} &
-\multicolumn{1}{c|}{0100111} & FSW rs1,rs2 \\
+\multicolumn{1}{c|}{0100111} & FSW rs1,rs2,imm \\
\cline{2-11}
@@ -1592,7 +1592,7 @@
\multicolumn{1}{c|}{rs1} &
\multicolumn{1}{c|}{011} &
\multicolumn{1}{c|}{imm[4:0]} &
-\multicolumn{1}{c|}{0100111} & FSD rs1,rs2 \\
+\multicolumn{1}{c|}{0100111} & FSD rs1,rs2,imm \\
\cline{2-11}
diff --git a/parse-opcodes b/parse-opcodes
index b5f3cf3..3117b8e 100755
--- a/parse-opcodes
+++ b/parse-opcodes
@@ -77,6 +77,7 @@ def str_inst(name,arguments):
if 'imm12hi' in arguments and 'imm12lo' in arguments:
arguments.remove('imm12hi')
arguments.remove('imm12lo')
+ arguments.append('imm')
if 'bimm12hi' in arguments and 'bimm12lo' in arguments:
arguments.remove('bimm12hi')
arguments.remove('bimm12lo')