lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]

Hi Sean.

On Thu, 16 Feb 2023 at 22:56, Sean Conner <> wrote:
> > add ax,0x40
> > daa
> > adc ax,0x90
> > daa
>   Um, aside from using AX (which is from the 8086),

Yep, my fault, is plain A.

> what's so speial about this sequence?  Aside from doing a bit of BCD atrithmetic?

Turns an hex digit to ASCII, in a compact way, (ab)using half carries
and overflows.

Francisco Olarte.