Skip to content

Instantly share code, notes, and snippets.

@ehzawad
Created January 31, 2016 13:04
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ehzawad/9cb423bf0d849627d45b to your computer and use it in GitHub Desktop.
Save ehzawad/9cb423bf0d849627d45b to your computer and use it in GitHub Desktop.
.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