MICROPROCESSOR AND MICROCONTROLLER

INTRODUCTION TO MICROPEOCESSOR

MICRO PROCESSOR AND MICRO CONTROLLER

Question [CLICK ON ANY CHOICE TO KNOW THE RIGHT ANSWER]
Which one of the following statements is correct regarding the instruction of CMP A
A
Compare accumulator with register A
B
Compare accumulator with memory
C
Compare accumulator with register H
D
None
Explanation: 

Detailed explanation-1: -The cmp instruction compares the contents of general-purpose register (GPR) RA with the contents of GPR RB as signed integers and sets one of the bits in Condition Register Field BF. BF can be Condition Register Field 0-7; programmers can specify which Condition Register Field will indicate the result of the operation.

Detailed explanation-2: -CMA: It is used in the 8085 microprocessors to complement the contents of the accumulator. In 8085 Instruction set, logical type there is one complement instruction with the mnemonic CMA. Mnemonic CMA stands for “CoMplement the Accumulator”.

There is 1 question to complete.