Question: please fix all error in this coding. MIPS Assembly Langguage .data username1: .space 20 email1: .space 30 password1: .space 20 address1: .space 50 welcome: .asciiz

please fix all error in this coding. MIPS Assembly Langguage

.data username1: .space 20 email1: .space 30 password1: .space 20 address1: .space 50 welcome: .asciiz "Welcome to Motion Delivery Apps! Sign Up" prompt1: .asciiz "Please enter your email: " prompt2: .asciiz "Create username(not more than 20): " prompt3: .asciiz "Create password(not more than 20): " prompt4: .asciiz "Enter address details: "

.text .global main main: li $v0, 4 #command for printing a string la $a0, welcome #loading the string welcome syscall

li $v0, 4 #command for printing a string la $a0, prompt1 #loading the string to prompt user enter email syscall

#get input from user li $v0, 8 la $a0, email1 li $a1, 30 syscall

li $v0, 4 #command for printing a string la $a0, prompt2 #loading the string to prompt user enter username syscall

#get input from user li $v0, 8 la $a0, username1 li $a1, 20 syscall

li $v0, 4 #command for printing a string la $a0, prompt3 #loading the string to prompt user enter username syscall

#get input from user li $v0, 8 la $a0, password1 li $a1, 20 syscall

li $v0, 4 #command for printing a string la $a0, prompt4 #loading the string to prompt user enter username syscall

#get input from user li $v0, 8 la $a0, address1 li $a1, 50 syscall

#decision delivery guy's presence delivery_guy: la $a0, presentGuy li $v0, 4 #system call core for print_string syscall #print str

li $v0 #system call code to read_int (1/0) syscall

move $t3, $v0

beq $t3, 1, disp_info #if delivery guy present, go to next level bne $t3, 1, warning guy #error-handling

warning_guy: li $v0, 4 la $a0, reenterGuy syscall

li $v0, 5 #system call code to read_int (1/0) syscall

move $v0,$v0

beq $t3, 1, disp_info #if delivery guy present, go to next level bne $t3, 1, warning guy #if delivery guy absent, loop warning_guy again

#displaying info disp_info: li $v0,4 #system call for print_string la $a0, displayInfo syscall #print_str

#print trackNo in a displaying info li $v0,1 move $a0, $t4 #move trackNo from $t5 syscall

li $v0,4 #print_trackNo la $a3, newLine la $a3, newLine #syscall

0 enter_bar #go to next label #key-in_barcode enter_bar: li $v0,4 la $a0, enterBarcode #ask user to enter barcode syscall

li $v0,5 syscall

0 verify_info

#decision info parcel matches Verify info: li $v0,4 la $a0, verifyParcel syscall

li $v0,5 #system call code for int to print syscall

move $t3, $v0

beq $t3,1, dropbox_unlock bne $t3,1, info_parcel #if info doesn't matches, go into info

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!