Different to AVR architecture, many computers have another flag in Status Reg-ister call as Parity Flag (denoted
Fantastic news! We've Found the answer you've been seeking!
Question:
Different to AVR architecture, many computers have another flag in Status Reg-ister call as Parity Flag (denoted as P). It is set to 1 when the calculation result contains even (including 0) is in its binary form. Otherwise it is set to 0.
Write a program to simulate such a flag. The process is like:
(1) calculate 0x56 + OxAB and put the result into R16;
(2) determine the P flag for this case and store it into RO (RO ← 1 if P=1, RO ← 0 otherwise).
Related Book For
Posted Date: