InterviewSolution
Saved Bookmarks
| 1. |
Differentiate SUI 8 bit data and CMP R |
|
Answer» (compare register or memory with accumulator) The CONTENTS of the OPERAND register or memory are M compared with the contents of the accumulator. Both contents are preserved . The RESULT of the comparison is shown by SETTING the flags of the PSW as follows: if (A) < reg/mem: carry flag is set. if (A) = reg/mem: zero flag is set. if (A) > reg/mem: carry and zero flags are reset. Eg: - CMP B CMP M |
|