SHARE
TWEET

Untitled

a guest Nov 5th, 2018 164 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. .model small
  2. .stack 100
  3.  
  4. .data
  5. MSG DB "OK", 0dh, 0ah, "$"
  6.  
  7. DISPLAY MACRO STRING
  8.     PUSH AX
  9.     PUSH DX
  10.    
  11.     MOV DX, OFFSET STRING
  12.     MOV AH, 09H
  13.     INT 21H
  14.    
  15.     POP DX
  16.     POP AX
  17. ENDM
  18.  
  19. .code
  20. mov ax, @data
  21. mov ds, ax
  22.  
  23. MOV BX, OFFSET DISP
  24. MOV DL, 'O'
  25. CALL BX
  26. MOV DL, 'K'
  27. CALL BX
  28.  
  29. mov ah, 4ch
  30. int 21h
  31.  
  32. DISP PROC NEAR
  33.     PUSH AX
  34.    
  35.     MOV AH, 2
  36.     INT 21H
  37.  
  38.     POP AX
  39.     RET
  40. DISP ENDP
  41.  
  42. End
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