Skip to content

Commit

Permalink
add missing imm for stores
Browse files Browse the repository at this point in the history
  • Loading branch information
yunsup committed Nov 22, 2013
1 parent e9ad4ca commit bc44539
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 6 deletions.
12 changes: 6 additions & 6 deletions instr-table.tex
Original file line number Diff line number Diff line change
Expand Up @@ -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}


Expand All @@ -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}


Expand All @@ -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}


Expand Down Expand Up @@ -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}


Expand Down Expand Up @@ -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}


Expand Down Expand Up @@ -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}


Expand Down
1 change: 1 addition & 0 deletions parse-opcodes
Original file line number Diff line number Diff line change
Expand Up @@ -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')
Expand Down

0 comments on commit bc44539

Please sign in to comment.