Home > other >  Decimal BCD subtraction operation
Decimal BCD subtraction operation

Time:10-07

For computing X - Y=Z, of which the XYZ for BCD code, where X=0400 h, Y=0102 h, please draw the procedure flow chart, according to the flow chart of experimental program,

CodePudding user response:

0 x400 - & gt; 0100, 0000, 0000 - b & gt; (BCD) 8421 400,
Similarly have 0 x102 - & gt; (BCD) 8421 102
400-102=298
(BCD) 8421-298 & gt; 0010, 1001, 1000 - b & gt; Z=0298 h
  • Related