
360 EMBEDDED SYSTEMS
Example 10.5
Given the contents of R3 and R4 as, R3 = 0x0FF00FF0, R4 = 0x0FF00FF0. and R0 = 0.
Find the values in R1, R2 and R5 at the end of the sequence of instructions shown.
i) EORS R1, R3, R4
ii) ANDS R5, R3,
Solution
e content of the destination register and the aff ected fl ag is shown alongside the
executed instruction
i) EORS R1, R3, R4 ;R1 = 0x00000000, Z = 1
ii) ANDS R5, R3, R0 ;R5 = 0x00000000 Z = 1
Note One of the source operands may be 8-bit immediate data as well. Refer to
Section 10.17 for details of how to handle data bigger than 8 bits.
10.10 | Compare Instructions
is instruction compares two operands ...