Question 6.8: Show how the 8051 would represent -34H

Show how the 8051 would represent -34H

The blue check mark means that this solution has been answered and checked by an expert. This guarantees that the final answer is accurate.
Learn more on how we answer questions.

1.     0011 0100        34H given in binary
2.    1100 1011          invert each bit
3.    1100 1100         add 1 (which is CC in hex)
Signed number representation of -34 in 2’s complement is CCH

Related Answered Questions

Question: 6.10

Verified Answer:

MOV    P2,#00        ;clear P2 MOV    P1,#0FFH   ;...
Question: 6.15

Verified Answer:

MOV   R1,#0             ;R1 keeps number of 1s MOV...
Question: 6.13

Verified Answer:

MOV    R5,#8 AGAIN:         MOV   C,P2.7         ;...