daily pastebin goal
74%
SHARE
TWEET

Untitled

a guest Nov 5th, 2018 159 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. DISPLAY MSG
  24.  
  25. mov ah, 4ch
  26. int 21h
  27.  
  28. DISP PROC NEAR
  29.     PUSH AX
  30.    
  31.     MOV AH, 2
  32.     INT 21H
  33.  
  34.     POP AX
  35.     RET
  36. DISP ENDP
  37.  
  38. 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