home *** CD-ROM | disk | FTP | other *** search
/ Collection of Hack-Phreak Scene Programs / cleanhpvac.zip / cleanhpvac / TASMSWAN.ZIP / CSHELL.ASM < prev    next >
Assembly Source File  |  1989-07-17  |  974b  |  45 lines

  1. %TITLE "Shell for Turbo C *.OBJ modules"
  2.  
  3.     IDEAL
  4.     MODEL    small
  5.  
  6. DATASEG
  7.  
  8. ;------ Insert PUBLIC data declarations here
  9.  
  10. ;------ Insert EXTRN data declarations here
  11.  
  12. ;------ Insert initialized variables here
  13.  
  14. FARDATA
  15. ;------ Insert far-data-segment variables here
  16.  
  17. CODESEG
  18. ;------ Insert PUBLIC code declarations here
  19.  
  20. ;------ Insert EXTRN code declarations here
  21.  
  22. %NEWPAGE
  23. ;-----------------------------------------------------------------------
  24. ; <type> funcname( <parameters> )
  25. ;-----------------------------------------------------------------------
  26. PROC    funcname    NEAR
  27.     push    bp
  28.     mov    bp,sp
  29.  
  30. ;    sub    sp,n    ;Optional: reserve space for locals
  31. ;    push    di    ;Optional: save register var di
  32. ;    push    si    ;Optional: save register var si
  33.  
  34. ;------ Insert instructions here
  35.  
  36. ;    pop    si    ;Optional: restore si
  37. ;    pop    di    ;Optional: restore di
  38. ;    mov    sp,bp    ;Optional: restore sp
  39.  
  40.     pop    bp    ;restore old bp pointer
  41.     ret        ;return to caller
  42. ENDP    funcname
  43.  
  44.     END
  45.