DCPU16 23
[COAL] Nested Procedures Guest on 4th December 2020 01:53:46 PM
  1. .model small
  2. .stack 100h
  3. .data
  4.     str1 db 'Name: Muhammad Hamza$'
  5.     str2 db 'Email: m-hamza14@outlook.com$'
  6.     str3 db 'Reg.No.: 1912192$'
  7.     str4 db 'Institute: SZABIST$'
  8. .code
  9. main proc
  10.     mov ax,@data
  11.     mov ds,ax
  12.     lea dx,str1
  13.     call str_dis
  14.     lea dx,str2
  15.     call str_dis
  16.     lea dx,str3
  17.     call str_dis
  18.     lea dx,str4
  19.     call str_dis
  20.  
  21.    
  22.     mov ah,4ch
  23.     int 21h
  24.      
  25.     main endp
  26.  
  27. str_dis proc
  28.     mov ah,9
  29.     int 21h
  30.     call n_1
  31.     ret
  32.     str_dis endp
  33. n_1 proc
  34.     mov ah,2
  35.     mov dl,10
  36.     int 21h
  37.     mov ah,2
  38.     mov dl,13
  39.     int 21h
  40.     ret
  41.     n_1 endp
  42. 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.