Question

1) Suppose r0 =0xFFFFFFFF, r1 = 0x00000001, and r2 = 0x00000000. Initially the N, Z, C,

and V flags are zero. Find the value of the N, Z, C, and V flags of the following

instructions. (Assume each instruction runs individually, i.e., these instructions are not

part of a program.)

(a) ADD r3, r0, r2

(b) SUBS r3, r0, r0

(c) ADDS r3, r0, r2

(d) LSL r3, r0, #1

(e) LSRS r3, r1, #1

(f) ANDS r3, r0, r2

Question image 1