Advertisement
madmaxhasan

Hello World Assembly

Jan 13th, 2018
330
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. .MODEL SMALL
  2. .STACK 100H
  3.  
  4. .DATA
  5.     MSG DB "Fun", 10, 13, "Day!$" ; 10 for New Line, 13 for carier Return
  6. .CODE
  7.  
  8. MAIN PROC
  9.    
  10.     MOV AX, @data                 ; Declaring Variable
  11.     MOV DS, AX                    ; Register
  12.  
  13.     LEA DX,MSG                    ; Print
  14.     MOV AH,9                      ; Transfer the value 9 in the memory variable TOTAL
  15.     INT 21H                       ; Call Kernel
  16.  
  17.     MOV AH,4Ch                    ; Fixing Error
  18.     INT 21H                       ; Fixing Error
  19.  
  20. MAIN ENDP
  21. END MAIN
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement