Hello,
DA A- decimal adjust accumulator after addition.
how the instruction "DA A" is used in 8051 assembly language.
kindly provide some examples with decimal numbers with it.
can it be used to convert binary numbers into BCD?
thank you!
It's expressly for correcting the addition of two BCD numbers and not for converting a binary number to BCD.
e.g. 0x20 would result in 0x20 if DA A was used as there is nothing to correct so the result won't be BCD 0x32.