xori $sp, $zero, 0x3ffc xori $t0, $zero, 4 #t0 = 4 xori $t1, $zero, 1 #t1 = 1 main: # sub $t2, $t0, $t1 #$t2 = 3 add $t3, $t0, $t1 #t3 = 5 slt $t4, $t1, $t0 #t4 = 1 jal storeload # bne $t0, $t1, makeequal j end # storeload: # sub $sp, $sp, $t0 sub $sp, $sp, $t0 sw $t0, 0($sp) sw $t1, 4($sp) lw $t5, 0($sp) #t5 = t0 = 4 lw $t6, 4($sp) #t6 = t1 = 1 add $sp, $sp, $t0 add $sp, $sp, $t0 jr $ra makeequal: # sub $t0, $t0, $t1 jr $ra end: # j end #
-
Notifications
You must be signed in to change notification settings - Fork 2
tah20112/Assembler_Project
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
About
This is the final project for my Computer Architecture class. We're making a disassembler and an assembler for MIPS.
Resources
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published