;--------------------------------
;  Jeff Owens
; display data byte as two hex ascii characters
;  inputs: al=data
;  output: registers ax,dx changed
;
conv_byte:
        mov    dx,0210h
        sub     ah,ah           ;clear upper byte
        div     dl              ;divide binary data by 16
        call    xx
        mov     al,ah
xx:     cmp    al,0ah
        sbb    al,69h
        das
        xchg    ax,dx
        int    21h
        xchg    ax,dx
        ret

