#--------------------------------- # Lab 5: Pixel Conversion # # Name: # Onyen: # # -------------------------------- # Below is the expected output. # # Converting pixels to grayscale: # 0 # 1 # 2 # 34 # 5 # 67 # 89 # Finished. # -- program is finished running -- #--------------------------------- .data startString: .asciiz "Converting pixels to grayscale:\n" finishString: .asciiz "Finished." newline: .asciiz "\n" pixels: .word 0x00010000, 0x010101, 0x6, 0x3333, 0x030c, 0x700853, 0x294999, -1 .text main: li $v0, 4 #System call code for print_str la $a0, startString #address of string to print syscall #print the string #------- INSERT YOUR CODE HERE ------- # #(You may delete the comment here when you insert your code) # #------------ END CODE --------------- exit: li $v0, 4 #System call code for print_str la $a0, finishString #address of string to print syscall #print the string li $v0, 10 #System call code for exit syscall #exit the program