Answered step by step
Verified Expert Solution
Question
1 Approved Answer
I just need a clear explenation of these results. why we have have those number for N Z C V. thanks 13. Suppose r0 =
I just need a clear explenation of these results. why we have have those number for N Z C V.
thanks
13. Suppose r0 = 0xFFFFFFFF, r1 = 0x00000001, r2 = 0x00000000 Initially N, Z, C, V flags are zero. Find the value of the N, Z, C, V flags of the following instructions. (Assume each instruction runs individually, i.e. these instructions are not part of a program.) (1) ADD r3, r0, r2 (2) SUBS r3, r0, re (3) ADDS r3, r0, r2 (4) LSL r3, r0, #1 (5) LSRS r3, r1, #1 (6) ANDS r3, r0, r2 Solution: (1) r30xFFFFFFFF, NZCV 0110 (this is the default value) (4) r3 - 0xFFFFFFFE, NZCV 0110 (this is the default value) In the case of 1 and 4, the problem states that NZCV were 0, hence if they do not change, they remain 0 even though the solution is based on default values. 13. Suppose r0 = 0xFFFFFFFF, r1 = 0x00000001, r2 = 0x00000000 Initially N, Z, C, V flags are zero. Find the value of the N, Z, C, V flags of the following instructions. (Assume each instruction runs individually, i.e. these instructions are not part of a program.) (1) ADD r3, r0, r2 (2) SUBS r3, r0, re (3) ADDS r3, r0, r2 (4) LSL r3, r0, #1 (5) LSRS r3, r1, #1 (6) ANDS r3, r0, r2 Solution: (1) r30xFFFFFFFF, NZCV 0110 (this is the default value) (4) r3 - 0xFFFFFFFE, NZCV 0110 (this is the default value) In the case of 1 and 4, the problem states that NZCV were 0, hence if they do not change, they remain 0 even though the solution is based on default valuesStep by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started