-
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.
Accelerate instruction fetching by adding XTLB. This may slow down Data Read/Write instructions. Add source code of fibonacci test case.
- Loading branch information
Showing
8 changed files
with
94 additions
and
14 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 |
---|---|---|
|
@@ -51,4 +51,4 @@ | |
modules.order | ||
Module.symvers | ||
Mkfile.old | ||
dkms.conf | ||
dkms.conf |
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
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 @@ | ||
@echo off | ||
|
||
echo Assembling... | ||
java -jar ..\mars.jar nc a .\fibonacci.asm dump .text Binary .\fib.text.bin dump .data Binary .\fib.data.bin | ||
echo Completed! | ||
|
||
pause. |
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,25 @@ | ||
.data | ||
strp: | ||
.asciiz "10th Fibonacci Number: " | ||
.text | ||
addi $t9, $zero, 10 | ||
addi $t1, $zero, 0 | ||
addi $t2, $zero, 1 | ||
j fibonacci | ||
|
||
fibonacci: | ||
add $t3, $t2, $t1 | ||
add $t1, $zero, $t2 | ||
add $t2, $zero, $t3 | ||
addi $t5, $t5, 1 | ||
bne $t5, $t9, fibonacci | ||
|
||
over: | ||
la $a0, strp | ||
addi $v0, $zero, 4 | ||
syscall | ||
move $a0, $t3 | ||
addi $v0, $zero, 1 | ||
syscall | ||
addi $v0, $zero, 10 | ||
syscall |
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