0

I want to write 7 assembly instructions (28 bytes) that runs a logical equivalent of this C snippet:
c = a + b + 6;
while (c > 5) {
c = c - a;
b = b + 1;
}
However, there are restrictions to the allowed instructions:
add, addi, sub, subi, slt, slti, bne
a, b, and c are located in regist...