Question: Coding help. Below is my current code. . data prompt 1 : . asciiz Please enter the first integer: prompt 2 : . asciiz

Coding help.
Below is my current code.
.data
prompt1: .asciiz "Please enter the first integer: "
prompt2: .asciiz "Please enter the second integer: "
prompt3: .asciiz "Please enter a math function among +,-,*, or /: "
output_gt: .asciiz "The first integer is greater than the second."
output_lt: .asciiz "The first integer is less than the second."
output_eq: .asciiz "The two integers are equal."
.text
main:
# Enter 1st integer
li $v0,4
la $a0, prompt1
syscall
# Save the entered integer in $s0
li $v0,5
syscall
move $s0, $v0
# Enter 2nd integer
li $v0,4
la $a0, prompt2
syscall
# Save the entered integer in $s1
li $v0,5
syscall
move $s1, $v0
# Compare the two integers
slt $t0, $s0, $s1
bne $t0, $zero, less_than
beq $s0, $s1, equal
j greater_than
less_than:
# Output the less than result
li $v0,4
la $a0, output_lt
syscall
j exit
equal:
# Output the equal result
li $v0,4
la $a0, output_eq
syscall
j exit
greater_than:
# Output the greater than result
li $v0,4
la $a0, output_gt
syscall
exit:
# Exit the program
li $v0,10
syscall
 Coding help. Below is my current code. .data prompt1: .asciiz "Please

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!