# Solution file for assembly question Q12C
# – Assume that $a0 stores a pixel value from your bitmap display.
# – Set $v0 to the grayscale version of this pixel in $a0.
# – This involves setting the red, green and blue values of $v0 to # the average of the red, green and blue values of $a0.
Copyright By PowCoder代写 加微信 powcoder
# – Example: if $a0 = 0x002174, $v0 will be set to 0x313131.
# – Make sure to comment your code and use meaningful label names.
# – Do not use jr $ra or syscall commend to terminate your program.
addi $a0, $zero, 0x002174 # we will change this value in testing.
#######################################
# ONLY ALTER THE CODE BELOW THIS LINE #
#######################################
程序代写 CS代考 加微信: powcoder QQ: 1823890830 Email: powcoder@163.com