Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ; You may customize this and other start-up templates;
- ; The location of this template is c:\emu8086\inc\0_com_template.txt
- org 100h
- ; add your code here
- .data
- msg db 0ah,0dh,"boom boom enter 3 input $"
- c1 db ?
- c2 db ?
- sum db ? ,'$'
- .code
- mov ax,@data
- mov DS,ax
- mov ah,2
- mov dl,'?'
- int 21h
- mov ah,1
- int 21h
- mov c1,al
- int 21h
- mov c2,al
- add al,c1
- sub al,30h
- mov sum,al
- mov ah,9
- lea dx,sum
- int 21h
- mov ah,4ch
- int 21h
- ret
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement