DAA 00100111 Convert 16bit to bcd 5 digits ; ; enter with four-bit binary 0 - 15 in al ; add al,90h ;feed it a cookie :-) daa ;abuse BCD codes in a magical way adc al,40h ;nothing up muh sleeve... daa ;Presto! ; ; now al contains correct ascii hex digit 0-9,A-F. It's magic! ;