.include "io_Macros.asm" .data A: .word 12 B: .word 5 .text lw $t1,A lw $t2,B move $t3,$0 #product loop: beqz $t2, end and $t4, $t2, 1 beqz $t4, skip #skip if 0, otherwise add A to product add $t3,$t3,$t1 skip: sll $t1,$t1,1 #shift A left the B right 1 bit srl $t2,$t2,1 b loop end: PInt ($t3) done