1
0

feat: Initial commit

This commit is contained in:
2024-03-22 13:53:19 +01:00
parent 44aa2938a2
commit 2a54d9dbc2
34 changed files with 1475 additions and 0 deletions

View File

@@ -0,0 +1,45 @@
.data
var1: .word 14
var2: .word 13
var3: .word 12
.text
.globl main
.ent main
main:
lw $t1, var1
lw $t2, var2
lw $t3, var3
blt $t1, $t2 stepa
move $t0, $t2
move $t2, $t1
move $t1, $t0
stepa:
blt $t1, $t3 stepb
move $t0, $t3
move $t3, $t1
move $t1, $t0
stepb:
blt $t2, $t3 stepc
move $t0, $t3
move $t3, $t2
move $t2, $t0
stepc:
move $a0, $t1
li $v0, 1
syscall
move $a0, $t2
li $v0, 1
syscall
move $a0, $t3
li $v0, 1
syscall
li $v0, 10
syscall