convertir un nombre 8 bits en hexadécimal:
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
 
        mov ah,al
        and al,0Fh
        call @f
        xchg al,ah
        shr al,4 
@@:
        cmp al,10
        sbb al,069h
        das
        ret