Advertisement
Guest User

Untitled

a guest
Jun 24th, 2017
53
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.                 call CS:Input
  12.                 mov bx,ax
  13.                 mov si,1
  14.                 call CS:Input
  15.  
  16. ...
  17.  
  18.  
  19. Input proc far
  20.                 mov bp,bx
  21.                 mov ah,02 ; Promt for input
  22.                 mov bx, offset promt
  23.                 mov dl,[bx+si+1]
  24.                 int 21h
  25.                
  26.                 mov dl,[bx]
  27.                 int 21h
  28.                
  29.                 mov ah,0ah ; Take string
  30.                 mov dx,offset buff
  31.                 int 21h
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement