[an error occurred while processing this directive]
|
Decimal Adjust W Register
DAW adjusts the eight-bit value in
W, resulting from the earlier addition
of two variables (each in packed BCD format) and produces
a correct packed BCD result.
If [W<3:0> >9] or [DC = 1] then
(W<3:0>) + 6 W<3:0>;
else
(W<3:0>) W<3:0>;
If [W<7:4> >9] or [C = 1] then
(W<7:4>) + 6 W<7:4>;
else
(W<7:4>) W<7:4>;
E-mail: info@telesys.ru