;Program converts three ASCII Decimal numbers to one
;binary byte in memory
        mov     al, byte ptr 400h
        sub     al, '0'                 ;strip ascii off
        add     al, al                  ;num (first digit) *2
        mov     bl, al                  ;save al
        add     bl, bl
        add     bl, bl                  ;num * 8
        add     bl, al                  ;num * 10

        mov     al, byte ptr 401h       ; get next digit
        sub     al, '0'
        add     al, bl                  ;first two digits together!
        add     al, al                  ; num (first two digits) * 2
        mov     bl, al                  ;
        add     bl, bl
        add     bl, bl                  ; num * 8
        add     bl, al

        mov     al, byte ptr 402h       ; get third (right most) digit
        sub     al, '0'
        add     al, bl                  ; all three are added now!
        mov     byte ptr 403h, al
        hlt
        end