Puts
Description: Put a string on the screen.
Gets: String's address on the stack.
Returns: In R0: 0 on success, -1 on error.
Example:
.text
main: .word 0
pushal szWelcomeMessage
calls $1, .puts # Ask for the user's name
pushal szUserName
calls $1, .gets # Get a line
pushal szWelcome
calls $1, .puts # Print hello to the user
pushal szUserName
calls $1, .puts
pushl $0
calls $1, .exit
.data
szWelcomeMessage: .asciz "Please Enter your name: "
szUserName: .space 20
szWelcome: .asciz "Hello, "