home *** CD-ROM | disk | FTP | other *** search
- ;ASMFORM.ASM
- ;
- ;There are no implied warranties or guarantees with this software. To the best
- ;of our knowledge it is free from defect.
- ;
- ; Provided by PCGURU BBS
- ;
- ; Tested on 9/21/88 by David R. Foley
- ;
- ; PC GURU BBS (617) 783-5154 24 Hours 2400bps
- ;
- ;
- ;
- ;
- ;
- ;
-
-
- Insert description of program between the two
- asterisks and any other pertinent information *
- ;
- SUBTTL Definitions of MACROs
- ;
- ; MACRO Definitions go here.
- ;
- SUBTTL Equates go here
- ;
- SUBTTL Data or Parameter Structures
- ;
- ; Define your structures
- ;
- SUBTTL STACK SEGMENT
- ;
- STACK SEGMENT PARA STACK 'STACK'
- DB 64 DUP('STACK ')
- STACK ENDS
- ;
- SUBTTL DESCRIPTION OF DATA WORK AREA
- ;
- WORKAREA SEGMENT PARA PUBLIC 'DATA'
- ;
- ; Insert DBs, DWs and DDs here with labels
- ;
- WORKAREA ENDS
- ;
- SUBTTL DESCRIPTION OF DOS INTERFACES
- ;
- CSEG SEGMENT PARA PUBLIC 'CODE'
- START PROC FAR
- ASSUME CS:CSEG,DS:WORKAREA,SS:STACK,ES:NOTHING
- ;
- SUBTTL ESTABLISH ENTRY LINKAGE FROM DOS
- ;
- PUSH DS ;Set return segment addr to start
- SUB AX,AX ;Clear AX register
- PUSH AX ;Put zero return address to stack
- ;
- ; Establish addressability for the data segment
- ;
- MOV AX,WORKAREA ;Get location of workarea
- MOV DS,AX ;Set seg reg base of data workarea.
- ;
- SUBTTL CODE YOUR MAIN PROCEDURE NEXT
- ;
- ;
- SUBTTL RESTORE ENTRY CONDITIONS, RETURN TO DOS
- ;
- ; Do any necessary pops here
- RET ;This gets you back to DOS
- ;
- START ENDP
- ;
- SUBTTL COMMON CODE LOCAL SUBROUTINES, HERE.
- ;
- CSEG ENDS ;define end of segment
- END START