Suppose accumulator A contains hexadecimal number 20 and the

Suppose accumulator A contains hexadecimal number $20 and the HC 12 executes instruction ADDA #$E0. What will be the values for the H, Z, N, and C bits as the result of the instruction? Use Appendix A to answer this question if necessary.

Solution

$20 the equallent Binary value is= 0010000

$E0 the equallent Binary value is=1110000

ADDA instruction perform the addition with Accumulator value, in Accumaulator $20 values is stores.

so its perform

0010 0000 +

1110 0000

-------------

0000 0000---sum output

and carry=1

After execution of this so control register C=1 due to carry=1

Z=1 due to result is $00

N=0,the sign is positive

H=0,there is no half carry

Suppose accumulator A contains hexadecimal number $20 and the HC 12 executes instruction ADDA #$E0. What will be the values for the H, Z, N, and C bits as the r

Get Help Now

Submit a Take Down Notice

Tutor
Tutor: Dr Jack
Most rated tutor on our site