Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- .data
- message: .asciiz "Hello, "
- userInput: .space 20
- .text
- main:
- # Getting user's input as text
- li $v0, 8
- la $a0, userInput
- li $a1, 20
- syscall
- #displays Hello
- li $v0, 4
- la $a0, message
- syscall
- #Displays the name
- li $v0, 4
- la $a0, userInput
- syscall
- #Tell the system this is the end
- li $v0,10
- syscall
Advertisement
Add Comment
Please, Sign In to add comment