feat: Initial commit
This commit is contained in:
23
Laboratorio3/Esercizio1.asm
Normal file
23
Laboratorio3/Esercizio1.asm
Normal file
@@ -0,0 +1,23 @@
|
||||
.data
|
||||
var: .word 0x3FFFFFF0
|
||||
|
||||
.text
|
||||
.globl main
|
||||
.ent main
|
||||
main:
|
||||
lw $t1, var
|
||||
add $t1, $t1, $t1
|
||||
move $a0, $t1
|
||||
li $v0, 1
|
||||
syscall
|
||||
addi $t2, $t1, 40
|
||||
move $a0, $t2
|
||||
li $v0, 1
|
||||
syscall
|
||||
li $t2, 40
|
||||
add $t2, $t1, $t1
|
||||
move $a0, $t2
|
||||
li $v0, 1
|
||||
syscall
|
||||
li $v0, 10
|
||||
syscall
|
||||
Reference in New Issue
Block a user