-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Iniciando escrita dos testes basicos do RV32I
- Loading branch information
Showing
83 changed files
with
854 additions
and
0 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
00300693 | ||
00c000ef | ||
00500713 | ||
02e02e23 | ||
00a00793 | ||
008000ef | ||
02f02e23 | ||
00f00813 | ||
03002e23 |
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 |
---|---|---|
@@ -0,0 +1,10 @@ | ||
00300693 | ||
00d686b3 | ||
00000897 | ||
01488893 | ||
000880e7 | ||
00700713 | ||
02e02e23 | ||
00a00793 | ||
00008067 | ||
02f02e23 |
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 +1,26 @@ | ||
# jal implementation | ||
.text | ||
|
||
.global _start | ||
|
||
_start: | ||
addi a3, zero, 3; | ||
|
||
jal subrotina; | ||
|
||
addi a4, zero, 5; | ||
|
||
sw a4, 60(zero); | ||
|
||
|
||
subrotina: | ||
addi a5, zero, 10; | ||
|
||
jal subrotina2; | ||
|
||
sw a5, 60(zero); | ||
|
||
subrotina2: | ||
addi a6, zero, 15; | ||
|
||
sw a6, 60(zero); |
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 +1,22 @@ | ||
# jalr implementation | ||
.text | ||
|
||
.global _start | ||
|
||
_start: | ||
addi a3, zero, 3; | ||
add a3, a3, a3; | ||
|
||
la a7, subrotina; | ||
|
||
jalr ra, a7, 0; | ||
|
||
addi a4, zero, 7; | ||
|
||
sw a4, 60(zero); | ||
|
||
subrotina: | ||
addi a5, zero, 10; | ||
jalr zero, ra, 0; | ||
|
||
sw a5, 60(zero); |
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 |
---|---|---|
@@ -0,0 +1,5 @@ | ||
00500593 | ||
00000013 | ||
00000013 | ||
00000013 | ||
02b02e23 |
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 |
---|---|---|
@@ -0,0 +1,2 @@ | ||
00a00593 | ||
02d02e23 |
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 |
---|---|---|
@@ -0,0 +1,5 @@ | ||
00400593 | ||
0015a693 | ||
0055a713 | ||
02d02c23 | ||
02e02e23 |
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 |
---|---|---|
@@ -0,0 +1,3 @@ | ||
00800593 | ||
7ff5b613 | ||
02c02e23 |
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 |
---|---|---|
@@ -0,0 +1,4 @@ | ||
00500593 | ||
00300613 | ||
00c5c6b3 | ||
02d02e23 |
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 |
---|---|---|
@@ -0,0 +1,3 @@ | ||
00500593 | ||
0035e693 | ||
02d02e23 |
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 |
---|---|---|
@@ -0,0 +1,3 @@ | ||
00500593 | ||
0035f693 | ||
02d02e23 |
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 |
---|---|---|
@@ -0,0 +1,3 @@ | ||
00400593 | ||
00159693 | ||
02d02e23 |
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 |
---|---|---|
@@ -0,0 +1,3 @@ | ||
00400593 | ||
0015d693 | ||
02d02e23 |
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 |
---|---|---|
@@ -0,0 +1,3 @@ | ||
00800593 | ||
4015d613 | ||
02c02e23 |
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 |
---|---|---|
@@ -0,0 +1,2 @@ | ||
6d0005b7 | ||
02b02e23 |
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 |
---|---|---|
@@ -0,0 +1,5 @@ | ||
6d000617 | ||
6d000697 | ||
00c68633 | ||
02d02c23 | ||
02c02e23 |
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 |
---|---|---|
@@ -0,0 +1,6 @@ | ||
00300693 | ||
00c000ef | ||
00500713 | ||
02e02e23 | ||
00a00793 | ||
02f02e23 |
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 |
---|---|---|
@@ -0,0 +1,8 @@ | ||
00300693 | ||
00d686b3 | ||
00c000ef | ||
00700713 | ||
02e02e23 | ||
00a00793 | ||
00008067 | ||
02f02e23 |
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 |
---|---|---|
@@ -0,0 +1,14 @@ | ||
00100593 | ||
00200613 | ||
02b58063 | ||
00a00693 | ||
02d02e23 | ||
01400793 | ||
02f02e23 | ||
00000013 | ||
00000013 | ||
00000013 | ||
00f00713 | ||
00c70733 | ||
fec582e3 | ||
02e02e23 |
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 |
---|---|---|
@@ -0,0 +1,14 @@ | ||
00100593 | ||
00200613 | ||
02c59063 | ||
00a00693 | ||
02d02e23 | ||
01400793 | ||
02f02e23 | ||
00000013 | ||
00000013 | ||
00000013 | ||
00f00713 | ||
00c70733 | ||
feb592e3 | ||
02e02e23 |
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 |
---|---|---|
@@ -0,0 +1,14 @@ | ||
00100593 | ||
00200613 | ||
02c5c063 | ||
00a00693 | ||
02d02e23 | ||
01400793 | ||
02f02e23 | ||
00000013 | ||
00000013 | ||
00000013 | ||
00f00713 | ||
00c70733 | ||
feb642e3 | ||
02e02e23 |
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 |
---|---|---|
@@ -0,0 +1,14 @@ | ||
00100593 | ||
00200613 | ||
02b65063 | ||
00a00693 | ||
02d02e23 | ||
01400793 | ||
02f02e23 | ||
00000013 | ||
00000013 | ||
00000013 | ||
00f00713 | ||
00c70733 | ||
fec5d2e3 | ||
02e02e23 |
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 |
---|---|---|
@@ -0,0 +1,14 @@ | ||
00100593 | ||
00200613 | ||
02c5e063 | ||
00a00693 | ||
02d02e23 | ||
01400793 | ||
02f02e23 | ||
00000013 | ||
00000013 | ||
00000013 | ||
00f00713 | ||
00c70733 | ||
feb662e3 | ||
02e02e23 |
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 |
---|---|---|
@@ -0,0 +1,14 @@ | ||
00100593 | ||
00200613 | ||
02b67063 | ||
00a00693 | ||
02d02e23 | ||
01400793 | ||
02f02e23 | ||
00000013 | ||
00000013 | ||
00000013 | ||
00f00713 | ||
00c70733 | ||
fec5f2e3 | ||
02e02e23 |
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 |
---|---|---|
@@ -0,0 +1,4 @@ | ||
7ff00593 | ||
02b02423 | ||
02800603 | ||
02c02e23 |
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 |
---|---|---|
@@ -0,0 +1,6 @@ | ||
7ff00593 | ||
00b585b3 | ||
00559593 | ||
02b02423 | ||
02801603 | ||
02c02e23 |
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 |
---|---|---|
@@ -0,0 +1,6 @@ | ||
00a00593 | ||
7ff00613 | ||
00b606b3 | ||
00d02e23 | ||
01c02703 | ||
02e02e23 |
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 |
---|---|---|
@@ -0,0 +1,5 @@ | ||
7ff00593 | ||
00b585b3 | ||
02b00823 | ||
03002603 | ||
02c02e23 |
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 |
---|---|---|
@@ -0,0 +1,5 @@ | ||
7ff00593 | ||
00659593 | ||
02b01823 | ||
03002603 | ||
02c02e23 |
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 |
---|---|---|
@@ -0,0 +1,3 @@ | ||
00500593 | ||
00b585b3 | ||
02b02e23 |
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 |
---|---|---|
@@ -0,0 +1,4 @@ | ||
00f00593 | ||
00500613 | ||
40c586b3 | ||
02d02e23 |
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 |
---|---|---|
@@ -0,0 +1,4 @@ | ||
00400593 | ||
00100613 | ||
00c596b3 | ||
02d02e23 |
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 |
---|---|---|
@@ -0,0 +1,4 @@ | ||
00400593 | ||
00100613 | ||
00c5a6b3 | ||
02d02e23 |
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 |
---|---|---|
@@ -0,0 +1,4 @@ | ||
00400593 | ||
00100613 | ||
00c5b6b3 | ||
02d02e23 |
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 |
---|---|---|
@@ -0,0 +1,4 @@ | ||
00500593 | ||
00300613 | ||
00c5c6b3 | ||
02d02e23 |
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 |
---|---|---|
@@ -0,0 +1,4 @@ | ||
00400593 | ||
00100613 | ||
00c5d6b3 | ||
02d02e23 |
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 |
---|---|---|
@@ -0,0 +1,4 @@ | ||
00400593 | ||
00100613 | ||
40c5d6b3 | ||
02d02e23 |
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 |
---|---|---|
@@ -0,0 +1,4 @@ | ||
00500593 | ||
00300613 | ||
00c5e6b3 | ||
02d02e23 |
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 |
---|---|---|
@@ -0,0 +1,4 @@ | ||
00500593 | ||
00300613 | ||
00c5f6b3 | ||
02d02e23 |
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 |
---|---|---|
@@ -0,0 +1,3 @@ | ||
00000593 | ||
00158593 | ||
ffdff06f |
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 |
---|---|---|
@@ -0,0 +1,7 @@ | ||
00a00593 | ||
01400613 | ||
00c586b3 | ||
0016d693 | ||
00c58733 | ||
00d707b3 | ||
02f02e23 |
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 |
---|---|---|
@@ -0,0 +1,8 @@ | ||
00a00593 | ||
01400613 | ||
00c586b3 | ||
02d02423 | ||
00100713 | ||
02802783 | ||
00e787b3 | ||
02f02e23 |
Empty file.
Empty file.
Empty file.
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 +1,14 @@ | ||
# addi implementation | ||
.text | ||
|
||
.global _start; | ||
|
||
_start: | ||
addi a1, zero, 5; # a1 = zero + 5 | ||
|
||
nop; | ||
nop; | ||
nop; # 3 nops to not cause forwarding | ||
|
||
sw a1, 60(zero); | ||
|
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 +1,9 @@ | ||
# sw implementation | ||
.text | ||
|
||
.global _start | ||
|
||
_start: | ||
addi a1, zero, 10 # Carrega o primeiro número (10) em a1 | ||
|
||
sw a3, 60(zero) |
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 +1,14 @@ | ||
# slti implementation | ||
.text | ||
|
||
.global _start; | ||
|
||
_start: | ||
addi a1, zero, 4; # a1 = zero + 5 | ||
|
||
slti a3, a1, 1; # a3 = a1 < 1 | ||
slti a4, a1, 5; # a4 = a1 < 5 | ||
|
||
sw a3, 56(zero); | ||
sw a4, 60(zero); | ||
|
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 +1,11 @@ | ||
# sltiu implementation | ||
.text | ||
|
||
.global _start; | ||
|
||
_start: | ||
addi a1, zero, 8; # a1 = zero + 5 | ||
|
||
sltiu a2, a1, 2047; # a2 = a1 < 2047 | ||
|
||
sw a2, 60(zero); |
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 +1,13 @@ | ||
# xori implementation | ||
.text | ||
|
||
.global _start; | ||
|
||
_start: | ||
addi a1, zero, 5; # a1 = zero + 5 | ||
addi a2, zero, 3; # a2 = zero + 3 | ||
|
||
xor a3, a1, a2; | ||
|
||
sw a3, 60(zero); | ||
|
Oops, something went wrong.