home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Collection of Hack-Phreak Scene Programs
/
cleanhpvac.zip
/
cleanhpvac
/
TASMSWAN.ZIP
/
CSHELL.ASM
< prev
next >
Wrap
Assembly Source File
|
1989-07-17
|
974b
|
45 lines
%TITLE "Shell for Turbo C *.OBJ modules"
IDEAL
MODEL small
DATASEG
;------ Insert PUBLIC data declarations here
;------ Insert EXTRN data declarations here
;------ Insert initialized variables here
FARDATA
;------ Insert far-data-segment variables here
CODESEG
;------ Insert PUBLIC code declarations here
;------ Insert EXTRN code declarations here
%NEWPAGE
;-----------------------------------------------------------------------
; <type> funcname( <parameters> )
;-----------------------------------------------------------------------
PROC funcname NEAR
push bp
mov bp,sp
; sub sp,n ;Optional: reserve space for locals
; push di ;Optional: save register var di
; push si ;Optional: save register var si
;------ Insert instructions here
; pop si ;Optional: restore si
; pop di ;Optional: restore di
; mov sp,bp ;Optional: restore sp
pop bp ;restore old bp pointer
ret ;return to caller
ENDP funcname
END