Keep DAA! (was Re: 8086 bugs)
woodelf
bfranchuk at jetnet.ab.ca
Sat Dec 10 01:03:13 CST 2005
J.C. Wren wrote:
> Noooooo........! DAA has a very useful function.
>
> AND AL,00fh
> ADD AL,090h
> DAA
> ADC AL,040h
> DAA
> RET
>
> Now, what's it do?
> --jc
>
It gets me confused before it returns. I think I've seen the same code
in the 386 book I have.
If it is the program segment I am thinking of that is a cute trick if
it returns AL as a ascii character.
More information about the cctalk
mailing list