DCPU16 32
[COAL] NewLine Procedure Guest on 12th November 2020 11:50:52 AM
  1. .model small
  2. .stack 100h
  3. .data
  4. name1 db 'Name: Muhammad Hamza$'
  5. email db 'Email: m-hamza14@outlook.com$'
  6. reg db 'Reg. ID: 1912192$'
  7.  
  8. .code
  9. main proc
  10.      mov ax,@data
  11.      mov ds, ax
  12.      
  13.      mov dx,offset name1
  14.      mov ah,9
  15.      int 21h
  16.      call newline
  17.      
  18.      mov dx,offset email
  19.      mov ah,9            
  20.      int 21h
  21.      call newline            
  22.      
  23.      mov dx,offset reg
  24.      mov ah,9
  25.      int 21h    
  26.      call newline
  27.      
  28.    
  29.      mov ah,4ch
  30.      int 21h
  31.    
  32.     main endp
  33.  
  34. newline proc    
  35.    
  36.          mov dl,10
  37.      mov ah,2
  38.      int 21h
  39.      mov dl,13
  40.      mov ah,2
  41.      int 21h
  42.      ret
  43.    
  44.     newline endp
  45.  
  46. 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.