Complete the code to compare register R0 with zero and branch if equal.
CMP R0, [1]
BEQ label_equalThe CMP instruction compares R0 with zero using the immediate value #0. The BEQ instruction branches if the comparison shows equality.
Complete the code to branch to label_greater if R2 is greater than R3.
CMP R2, R3
B[1] label_greaterThe BGT instruction branches if the first value is greater than the second after comparison.
Fix the error in the code to branch if R4 is less than or equal to R5.
CMP R4, R5
B[1] label_less_equalThe correct branch condition for 'less than or equal' is LE. Using LT only checks for strictly less than.
Fill both blanks to compare R6 with R7 and branch if not equal.
CMP [1], [2] BNE label_not_equal
The CMP instruction compares register R6 with R7. The BNE instruction branches if they are not equal.
Fill all three blanks to compare R8 with immediate 5 and branch if greater or equal.
CMP [1], [2] B[3] label_ge
The CMP instruction compares register R8 with immediate value 5. The branch instruction BGE branches if R8 is greater than or equal to 5.