Advertisement
__DEN__

dop_1

Feb 17th, 2022
1,995
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1.         org     100h
  2. Start:
  3.         mov     ah, $09
  4.         mov     dx, EnterStr
  5.         int     21h
  6.  
  7.         mov     ah, $0a
  8.         mov     dx, Name
  9.         int     21h
  10.  
  11.         mov     ah, $02
  12.         mov     dl, 10
  13.         int     21h
  14.  
  15.         mov     ah, $09
  16.         mov     dx, HelloStr
  17.         int     21h
  18.  
  19.         mov     bl, [Name + 1]
  20.         mov     [Name + 2 + bx], "$"
  21.  
  22.         mov     dx, Name + 2
  23.         int     21h
  24.  
  25.         mov     ah, $02
  26.         mov     dl, "!"
  27.         int     21h
  28.  
  29.         mov     ah, $08
  30.         int     21h
  31.  
  32.         ret
  33.  
  34. EnterStr db     "Enter your name: $"
  35. HelloStr db     "Hello, $"
  36. Name     db     20, 0, 20 dup(?)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement