Control Structures - Assembly Language Program
Control Structures - Assembly Language Program
lw $t0, x lw $t0, x
sgt $t1, $t0, $zero sgt $t1, $t0, $zero
div $t0, 2 li $t5, 10
mfhi $t0 slt $t2, $t0, $t5
seqz $t2,$t0 rem $t3, $t0, 2
and $t1, $t1, $t2 and $t1, $t1, $t2
beqz $t1, end_if and $t1, $t1, $t3
beqz $t1, end_if
.text