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 "boom boom enter 3 input $"
- v1 db ? ,0ah,0dh
- v2 db ? ,0ah,0dh
- v3 db ? ,'$'
- .code
- mov ax,@data
- mov ds,ax
- lea dx,msg
- mov ah,9
- int 21h
- ; char input
- mov ah,1
- int 21h
- mov v1,al
- mov ah,1
- int 21h
- mov v2,al
- mov ah,1
- int 21h
- mov v3,al
- ; display new line code
- mov ah,2
- mov dx,0ah
- int 21h
- mov ah,2
- mov dx,0dh
- int 21h
- ;2nd display with string
- ;extra;single char er 1st value left er code
- mov ah,2
- mov dx,0dh
- int 21h
- mov ah,9
- lea dx,v1
- int 21h
- ret
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement