Complete the code to add the values of registers R1 and R2, storing the result in R0.
ADD R0, R1, [1]The ADD instruction adds the values of two registers. Here, R1 and R2 are added, and the result is stored in R0.
Complete the code to subtract the value in register R3 from R4, storing the result in R5.
SUB [1], R4, R3The SUB instruction subtracts the third operand (R3) from the second operand (R4) and stores the result in the first operand (R5).
Fix the error in the MOV instruction to correctly move the value 10 into register R0.
MOV R0, [1]In ARM assembly, immediate values must be prefixed with a '#' symbol. So to move the value 10, use '#10'.
Fill both blanks to compare the values in registers R2 and R3 using the CMP instruction.
CMP [1], [2]
The CMP instruction compares the first register with the second. Here, R2 is compared to R3.
Fill all three blanks to create a dictionary comprehension that maps registers to their values if the value is greater than 5.
{ [1]: [2] for [3] in registers if registers[[3]] > 5 }This comprehension creates a dictionary where each key is a register name (reg) and the value is the register's value (registers[reg]) if that value is greater than 5.
