Created
January 31, 2016 13:04
-
-
Save ehzawad/9cb423bf0d849627d45b to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
.model small | |
.stack 100h | |
;VRIABLE DEC LARATION PART | |
.data | |
a db ? | |
b db ? | |
c dw "Enter 1st Input:$" | |
d dw "Enter 2nd Input:$" | |
e dw "Display:$" | |
f dw "a:$" | |
g dw "b:$" | |
.code | |
; additin and substraction programm | |
main proc | |
mov ax, @data | |
mov ds, ax | |
mov ah, 1 | |
int 21h | |
mov a, al | |
int 21h | |
mov b, al | |
mov bl, a | |
add bl,b | |
;new linw and STEP back | |
mov ah,2 | |
mov dl,0ah | |
int 21h | |
mov dl,0dh | |
int 21h | |
mov dl, bl | |
int 21h | |
main endp | |
end main |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment