Write a MIPS Assembly Language program to request a name and reflect it back to the user.
The request must be "Please enter your full name:"
And it should be output following "The name you entered was: '
.data input_prompt: .asciiz "Please enter your full name:" output_prompt: .asciiz "The name you entered was: " string: .space 100 .text la $a0, input_prompt # load address of input_prompt # print input_prompt li $v0, 4 syscall la $a0, string li $a1, 100 li $v0, 8 syscall la $a0, output_prompt # load address of output_prompt # print output_prompt li $v0, 4 syscall la $a0, string # load address of string # print string li $v0, 4 syscall
Get Answers For Free
Most questions answered within 1 hours.