home *** CD-ROM | disk | FTP | other *** search
/ World of Shareware - Software Farm 2 / wosw_2.zip / wosw_2 / CPROG / TASMSWAN.ZIP / EXESHELL.ASM < prev    next >
Assembly Source File  |  1989-07-10  |  438b  |  32 lines

  1. %TITLE "Shell for *.EXE Code files"
  2.  
  3.     IDEAL
  4.     DOSSEG
  5.     MODEL    small
  6.     STACK    256
  7.  
  8. ;----- Insert INCLUDE "filename" directives here
  9.  
  10. ;----- Insert EQU and = equates here
  11.  
  12.     DATASEG
  13.  
  14. exitCode    DB    0
  15.  
  16. ;-  IF you want more detailed comments buy the book
  17.  
  18.     CODESEG
  19.  
  20.  
  21. Start:
  22.     mov    ax,@data
  23.     mov     ds,ax
  24. ;--- Insert program, subroutine calls, etc...  here
  25.  
  26. Exit:
  27.     mov    ax,04C00h
  28.     mov    al,[exitCode]
  29.     int     21h
  30.  
  31.     End     Start
  32.