DCPU16 23
[COAL] Macro Guest on 1st January 2021 12:10:53 PM
  1. ;Macro
  2. print macro p1
  3.     mov dx,offset p1
  4.     mov ah,9
  5.     int 21h
  6.     endm
  7. new_line macro
  8.     mov ah,2
  9.     mov dl,10
  10.     int 21h
  11.     mov ah,2
  12.     mov dl,13
  13.     int 21h
  14.     endm    
  15.    
  16. .model small
  17. .stack 100h
  18. .data
  19. msg1 db 'Hello world$'
  20. msg2 db 'SZABIST$'
  21. msg3 db 'Muhammad Hamza$'
  22.  
  23. .code
  24. main proc
  25.    
  26.    mov ax,@data
  27.    mov ds,ax
  28.    print msg1
  29.    print msg2
  30.    print msg3
  31.    mov ah,4ch
  32.    int 21h
  33.    
  34.    
  35.     main endp
  36. end main

Coding Base is for source code and general debugging text.

Login or Register to edit, delete and keep track of your pastes and more.

Raw Paste

Login or Register to edit or fork this paste. It's free.