MICROPROCESSOR AND MICROCONTROLLER

INTRODUCTION TO MICROPEOCESSOR

MICROPROCESSOR TERMINOLOGY

Question [CLICK ON ANY CHOICE TO KNOW THE RIGHT ANSWER]
CMP does
A
internal subtraction
B
internal addition
C
multiplication
D
division
Explanation: 

Detailed explanation-1: -The CMP instruction subtracts the value of Operand2 from the value in Rn . This is the same as a SUBS instruction, except that the result is discarded. The CMN instruction adds the value of Operand2 to the value in Rn . This is the same as an ADDS instruction, except that the result is discarded.

Detailed explanation-2: -The cmp is used for comparing the numeric value with the source value to the destination value in the Microprocessor 8086 Where as sub is used for subtract the source value to the destination numeric value in the Microprocessor 8086.

There is 1 question to complete.