feat: Initial commit
This commit is contained in:
27
Laboratorio8/Esercizio4.asm
Normal file
27
Laboratorio8/Esercizio4.asm
Normal file
@@ -0,0 +1,27 @@
|
||||
.data
|
||||
p: .asciiz "Il numero è palindromo"
|
||||
|
||||
.text
|
||||
.globl main
|
||||
.ent main
|
||||
main:
|
||||
addiu $sp, $sp, -4
|
||||
sw $ra, ($sp)
|
||||
|
||||
li $a0, 4
|
||||
li $a1, 3
|
||||
li $a2, 2
|
||||
li $a3, 1
|
||||
jal determinante2x2
|
||||
|
||||
lw $ra, ($sp)
|
||||
jr $ra
|
||||
.end main
|
||||
|
||||
.ent determinante2x2
|
||||
determinante2x2:
|
||||
mul $t0, $a0, $a3
|
||||
mul $t1, $a1, $a2
|
||||
sub $v0, $t0, $t1
|
||||
jr $ra
|
||||
.end determinante2x2
|
||||
Reference in New Issue
Block a user