So I have this problem where
ANDS R1, R2, R3
and to assume the flags are initially
N=0 Z=0 C=0 V=1 Q=0
R1: 0000C5BF H
R2: 0000A0F9 H
R3: is 00000000 H
I have to examine the end results of the register and say whether the flags are affected,
so from calculating, the answer becomes: R1 is 00000000H .
Since the value is zero, Z=1 , , my question since there is no overflow either to R1, why does V still stay 1, why does it not change to zero.
I am not using any ARM software to do this, so I need help understanding how the flags work in ARM.
You should read the manual carefully:
andsinstruction doesn't affect thevflag. Which means: It remains the way it has been prior to the instrucion's execution.