Keep DAA! (was Re: 8086 bugs)

Fred Cisin cisin at
Sat Dec 10 13:02:10 CST 2005

> >    AND AL,00fh
> >    ADD AL,090h
> >    DAA
> >    ADC AL,040h
> >    DAA
> >    RET

On Sat, 10 Dec 2005, woodelf wrote:
> 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.

The first time that I saw that sequence, it was in some commented source
The comment read:
; I have no idea why this works!

More information about the cctalk mailing list