Tuesday, March 24, 2020

Addition of Two Numbers Using Procedure Call in 8086 Assembly Language

.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

How to Write Summary of a Research Paper

Paper Summary should contain the following points: What problem author’s solved? What are the motivations for that problem? Why is it import...