SHARE
TWEET

Assembly using Macro

naeem043 Apr 5th, 2019 78 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. DISP MACRO MES, A
  2.     MOV DX, OFFSET MES
  3.     MOV AH, 9
  4.     INT 21H
  5.      
  6.     PRINTN ''  
  7.    
  8.     MOV DX, OFFSET A
  9.     MOV AH, 9
  10.     INT 21H
  11.    
  12. ENDM
  13.  
  14.  
  15. .MODEL SMALL
  16. .STACK 100H
  17.  
  18. .DATA
  19.     STR1 DB 'HELLO $'
  20.     STR2 DB 'HOW ARE YOU? $'    
  21.    
  22. .CODE
  23.  
  24. MAIN PROC
  25.     INCLUDE 'EMU8086.INC'
  26.     MOV AX, @DATA
  27.     MOV DS, AX
  28.    
  29.     DISP STR1, STR2
  30.     ;DISP STR2
  31.    
  32.     MOV AH, 4CH
  33.     INT 21
  34.    
  35. MAIN ENDP
  36.  
  37. END MAIN
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