Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- .data
- message: .asciiz "Vnesi broj."
- .text
- main:
- li $v0, 4
- la $a0, message
- li $v0, 5 #scanf od tipot integer
- syscall
- move $t0, $v0 #vrednosta sto ja stadovme vo v0 ja prefrlame vo t0
- abs $t0,$t0 #najprosto naogja na absolutna vrednost....
- li $v0, 1
- move $a0,$t0
- syscall
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement