.model small
.code
main proc
mov ah, 01h
int 21h
mov bl, al
mov ah, 01h
int 21h
mov cl, al
call addition
call output
main endp
addition proc
add bl, cl
sub bl, 30h
mov dl, bl
ret
addition endp
output proc
mov ah, 02h
int 21h
ret
output endp
end main
No comments:
Post a Comment