MICROPROCESSOR AND MICROCONTROLLER

INTRODUCTION TO MICROPEOCESSOR

MICROPROCESSOR TERMINOLOGY

Question [CLICK ON ANY CHOICE TO KNOW THE RIGHT ANSWER]
After the execution of CMP A instruction
A
ZF is set and CY is unchanged
B
ZF is reset and CY is set
C
ZF is set and CY is reset
D
ZF is reset and CY is unchanged
Explanation: 

Detailed explanation-1: -31.In order to reset the carry without affecting the accumulator contentone has to use, SUB AXRA AORA ACMCAnswer:-After OR operation CY (carry flag) & AC (auxiliary carry flag)is reset by default. So, this is the most suitable instruction to reset carry.

Detailed explanation-2: -In 8085 Instruction set, CMP is a mnemonic that stands for “CoMPareAccumulator” and hereR stands for any of the following registers, or memory location M pointed by HL pair. This instruction is used to compare contents of the Accumulator with given register R.

There is 1 question to complete.