home *** CD-ROM | disk | FTP | other *** search
- ; Sample Starting SHELL.ASM file
- ;
- ; Randall Hyde
- ; Version 1.0
- ; 2/6/96
- ;
- ; This file shows what the SHELL.ASM file looks like without
- ; the superfluous comments that explain where to place objects
- ; in the source file. Your programs should likewise begin
- ; with a stripped version of the SHELL.ASM file. After all,
- ; the comments in the original SHELL.ASM file are four *your*
- ; consumption, not to be read by someone who sees the program
- ; you wind up writing.
-
- .xlist
- include stdlib.a
- includelib stdlib.lib
- .list
-
- dseg segment para public 'data'
-
- dseg ends
-
- cseg segment para public 'code'
- assume cs:cseg, ds:dseg
-
- Main proc
- mov ax, dseg
- mov ds, ax
- mov es, ax
- meminit
-
-
-
-
-
- Quit: ExitPgm
- Main endp
-
- cseg ends
-
- sseg segment para stack 'stack'
- stk db 1024 dup ("stack ")
- sseg ends
-
- zzzzzzseg segment para public 'zzzzzz'
- LastBytes db 16 dup (?)
- zzzzzzseg ends
- end Main