|
;print 0 if $t0 if even, 1 if $t0 is odd
|
|
|
|
andi t0,t0,1 ;clear all but bit 1. This tells us if $t0 is odd or even.
|
|
addiu t0,"0" ;add ASCII 0 (0x30) to $t0
|
|
jal PrintChar ;implementation-defined print routine that prints the ASCII value of $t0 to the screen.
|