-
Notifications
You must be signed in to change notification settings - Fork 232
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update descriptions on 64 bit instructions
- Loading branch information
1 parent
21bf74e
commit ca1fb58
Showing
20 changed files
with
17 additions
and
43 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,8 @@ | ||
package rars.riscv.instructions; | ||
|
||
// TODO: update description | ||
public class ADDW extends ArithmeticW { | ||
public ADDW() { | ||
super("addw t1,t2,t3", "Addition: set t1 to (t2 plus t3)", | ||
super("addw t1,t2,t3", "Addition: set t1 to (t2 plus t3) using only the lower 32 bits", | ||
"0000000", "000",new ADD()); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,8 @@ | ||
package rars.riscv.instructions; | ||
|
||
// TODO: update description | ||
public class DIVW extends ArithmeticW { | ||
public DIVW() { | ||
super("divw t1,t2,t3", "Multiplication: set t1 to the lower 32 bits of t2*t3", | ||
super("divw t1,t2,t3", "Division: set t1 to the result of t2/t3 using only the lower 32 bits", | ||
"0000001", "100",new DIV()); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,8 @@ | ||
package rars.riscv.instructions; | ||
|
||
// TODO: update description | ||
public class MULW extends ArithmeticW { | ||
public MULW() { | ||
super("mulw t1,t2,t3", "Multiplication: set t1 to the lower 32 bits of t2*t3", | ||
super("mulw t1,t2,t3", "Multiplication: set t1 to the lower 32 bits of t2*t3 using only the lower 32 bits of the input", | ||
"0000001", "000",new MUL()); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,8 @@ | ||
package rars.riscv.instructions; | ||
|
||
// TODO: update description | ||
public class REMUW extends ArithmeticW { | ||
public REMUW() { | ||
super("remuw t1,t2,t3", "Multiplication: set t1 to the lower 32 bits of t2*t3", | ||
super("remuw t1,t2,t3", "Remainder: set t1 to the remainder of t2/t3 using unsigned division limited to 32 bits", | ||
"0000001", "111",new REMU()); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,8 @@ | ||
package rars.riscv.instructions; | ||
|
||
// TODO: update description | ||
public class REMW extends ArithmeticW { | ||
public REMW() { | ||
super("remw t1,t2,t3", "Multiplication: set t1 to the lower 32 bits of t2*t3", | ||
super("remw t1,t2,t3", "Remainder: set t1 to the remainder of t2/t3 using only the lower 32 bits", | ||
"0000001", "110",new REM()); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,8 @@ | ||
package rars.riscv.instructions; | ||
|
||
// TODO: update description | ||
public class SLLW extends ArithmeticW { | ||
public SLLW() { | ||
super("sllw t1,t2,t3", "Shift left logical: Set t1 to result of shifting t2 left by number of bits specified by value in low-order 5 bits of t3", | ||
super("sllw t1,t2,t3", "Shift left logical (32 bit): Set t1 to result of shifting t2 left by number of bits specified by value in low-order 5 bits of t3", | ||
"0000000", "001",new SLL()); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,8 @@ | ||
package rars.riscv.instructions; | ||
|
||
// TODO: update description | ||
public class SRAW extends ArithmeticW { | ||
public SRAW() { | ||
super("sraw t1,t2,t3", "Shift left logical: Set t1 to result of shifting t2 left by number of bits specified by value in low-order 5 bits of t3", | ||
super("sraw t1,t2,t3", "Shift left logical (32 bit): Set t1 to result of shifting t2 left by number of bits specified by value in low-order 5 bits of t3", | ||
"0100000", "101",new SRA()); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,8 @@ | ||
package rars.riscv.instructions; | ||
|
||
// TODO: update description | ||
public class SRLW extends ArithmeticW { | ||
public SRLW() { | ||
super("srlw t1,t2,t3", "Shift left logical: Set t1 to result of shifting t2 left by number of bits specified by value in low-order 5 bits of t3", | ||
super("srlw t1,t2,t3", "Shift left logical (32 bit): Set t1 to result of shifting t2 left by number of bits specified by value in low-order 5 bits of t3", | ||
"0000000", "101",new SRL()); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,8 @@ | ||
package rars.riscv.instructions; | ||
|
||
// TODO: update description | ||
public class SUBW extends ArithmeticW { | ||
public SUBW() { | ||
super("subw t1,t2,t3", "Addition: set t1 to (t2 plus t3)", | ||
super("subw t1,t2,t3", "Subtraction: set t1 to (t2 minus t3) using only the lower 32 bits", | ||
"0100000", "000",new SUB()); | ||
} | ||
} |