SHARE
TWEET

Untitled

a guest Feb 17th, 2019 61 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, DispText
  5.         int 21h
  6.  
  7.         mov dx, NewLine
  8.         int 21h
  9.  
  10.         mov ah, 0ah
  11.         mov dx, bufStr
  12.         int 21h
  13.  
  14.         mov ah, $09
  15.         mov dx, NewLine
  16.         int 21h
  17.  
  18.  
  19.         mov ah, [bufStr + 6]
  20.         mov dh, [bufStr + 5]
  21.         mov [bufStr + 6], dh
  22.         mov [bufStr + 5], ah
  23.         mov [bufStr + 11], '$'
  24.  
  25.         mov dh, [bufStr + 10]
  26.         sub dh, [bufStr + 9]
  27.         add [bufStr + 7], dh
  28.  
  29.  
  30.         mov ah, $09
  31.         mov dx, bufStr
  32.         int 21h
  33.         mov dx, NewLine
  34.         int 21h
  35.  
  36.         mov ah, $08
  37.         int 21h
  38.  
  39.         ret
  40.  
  41. DispText   db  "Please, enter 9 letters$"
  42. NewLine    db   0dH, 0aH, "$"
  43. bufStr     db  10, 0, 10 dup(?)
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top