Advertisement
Dany1858

mips: inserisci età

Mar 17th, 2018
467
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. .data
  2.     reqMex: .asciiz "Inserisci tua eta': "
  3.     respMex: .asciiz "\nla tua eta' e': "
  4.     respMex2: .asciiz " anni"
  5.  
  6. .text
  7.     #req age
  8.     li $v0, 4
  9.     la $a0, reqMex
  10.     syscall
  11.    
  12.     #req get age
  13.     li $v0, 5
  14.     syscall
  15.    
  16.     #move in $s0 from $t0
  17.     move $t0, $v0
  18.    
  19.     #resp message
  20.     li $v0, 4
  21.     la $a0, respMex
  22.     syscall
  23.    
  24.     #resp age
  25.     li $v0, 1
  26.     move $a0, $t0
  27.     syscall
  28.    
  29.     #resp2 message
  30.     li $v0, 4
  31.     la $a0, respMex2
  32.     syscall
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement