
;Please put your NAME and SECTION NUMBER here


        .model small
        .stack 100h

        .data
pA      DB  "Enter value for A (0 or 1):  $"
pB      DB  0DH, 0Ah,"Enter value for B (0 or 1):  $"
pC      DB  0DH, 0AH,"Enter value for Cin (0 or 1):  $"
pS      DB  0DH, 0AH,"Sum:  $"
pO      DB  0DH, 0AH,"Carry:  $"

A       DB  0
B       DB  0
Cin     DB  0
Sum1    DB  0
Carry1  DB  0
Sum     DB  0
Cout    DB  0

        .code
        .startup

        lea     dx, pA
        mov     ah, 09h
        int     21h             ;print prompt for A
        mov     ah, 01h
        int     21h             ;read in A
        sub     al, 30h	        ;convert to binary
        mov     A, al

        lea     dx, pB
        mov     ah, 09h
        int     21h             ;print prompt for B
        mov     ah, 01h
        int     21h             ;read in B
        sub     al, 30h         ;convert to binary
        mov     B, al

        lea     dx, pC
        mov     ah, 09h
        int     21h             ;print prompt for Cin
        mov     ah, 01h
        int     21h	        ;read in Cin
        sub     al, 30h         ;convert to binary
        mov     Cin, al

;Insert your code here that implements the binary full-adder
;Your code should leave the binary values of Sum and Cout
;in those variables




      

        add     Sum, 30H        ;convert binary values to ASCII
        add     Cout, 30H

        lea     DX, pS         ;print the value of Sum
        mov     AH, 09h
        int     21h
        mov     ah, 02h
        mov     dl, Sum
        int     21h

        lea     dx, pO         ;print the value of Cout
        mov     ah, 09h
        int     21h
        mov     ah, 02h
        mov     dl, Cout
        int     21h

        .exit
        end


