# COMP1521 21T2 … final exam, question 2
.data
even_parity_str: .asciiz “the parity is even\n”
odd_parity_str: .asciiz “the parity is odd\n”
.text
main:
li $v0, 5
syscall
move $t0, $v0
# input is in $t0
# TODO
li $v0, 4
la $a0, even_parity_str
syscall
li $v0, 0
jr $ra