Advertisement
Guest User

Untitled

a guest
Jun 24th, 2017
79
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. dseg segment para public "data"
  2.                 buff db 7,8 dup ("?")
  3.                 promt db "=xy"
  4.                 out2 db "Your number is: $"
  5.                 error db "incorrect number$"
  6.         number equ 34
  7. dseg ends
  8.  
  9. ...
  10.  
  11. Input proc far
  12.                 mov bp,bx
  13.                 mov ah,02 ; Promt for input
  14.                 mov bx, offset promt
  15.                 mov dl,[bx+si+1]
  16.                 int 21h
  17.                
  18.                 mov dl,[bx]
  19.                 int 21h
  20.                
  21.                 mov ah,0ah ; Take string
  22.                 mov dx,offset buff
  23.                 int 21h
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement