MICROPROCESSOR AND MICROCONTROLLER

8085 MICROPROCESSOR

FEATURE OF 8085

Question [CLICK ON ANY CHOICE TO KNOW THE RIGHT ANSWER]
NEG (Negate) instruction does the following instuction
A
2s complement
B
1s complement
C
Either A or B
D
None of the above
Explanation: 

Detailed explanation-1: -Changes the arithmetic sign of the contents of a general-purpose register and places the result in another general-purpose register.

Detailed explanation-2: -Description. Replace the value of the byte, word, or long with its two’s complement; that is, neg subtracts the byte, word, or long value from 0, and puts the result in the byte, word, or long respectively. neg sets the carry flag to 1, unless initial value of the byte, word, or long is 0.

Detailed explanation-3: -neg computes the two’s complement negative value, not the bitwise negative. You’ll want a not instruction, or manually add one to the answer to get your desired result.

Detailed explanation-4: -NEG instruction affects these flags only: CF, ZF, SF, OF, PF, AF. NOT-Reverse each bit of operand. NEG-Make operand negative (two’s complement).

There is 1 question to complete.