Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- .data
- reqMex: .asciiz "Inserisci un intero: "
- respMex: .asciiz "\nrisultato: "
- .text
- #req intero mex
- li $v0, 4
- la $a0, reqMex
- syscall
- #req intero
- li $v0, 5
- syscall
- #move in $t1 from $v0
- move $t0, $v0
- #req intero mex 2
- li $v0, 4
- la $a1, reqMex
- syscall
- #req intero 2
- li $v0, 5
- syscall
- #move in $t1 from $v0
- move $t1, $v0
- #calcolate
- add $t0, $t0, $t1
- #resp message
- li $v0, 4
- la $a0, respMex
- syscall
- #resp intero
- li $v0, 1
- move $a0, $t0
- syscall
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement