home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Power-Programmierung
/
CD1.mdf
/
assemblr
/
tutorial
/
y_asm
/
exe.asm
< prev
next >
Wrap
Assembly Source File
|
1987-10-30
|
1KB
|
69 lines
.xlist
if1
%out EXE.ASM
endif
if2
%out *** PASS 2
endif
name NAME
title TITLE
subttl SUBTITLE
page 66,132
.list
; ************************************************************************
; ** **
; ** filename: exe.asm **
; ** **
; ** Provides a template for MS-DOS .EXE assembly language programs. **
; ** **
; ************************************************************************
; define bios and dos interrupts, functions, and services
.xlist
include bios_dos.inc
.list
; define constants
.xlist
include equates.inc
.list
; module connection points
stack segment stack
db 100H dup (?) ; reserve stack area
stack ends
data segment
; YOUR DATA HERE!
data ends
code segment public
assume cs:code,ds:data,es:data,ss:stack
pname proc far
push ds ;
mov ax,0 ;
push ax ; prepare for FAR RETurn to DOS
mov ax,data ;
mov ds,ax ; set up data segment
mov es,ax ; set up extra segment
nop ; provides target for symdeb
; YOUR PROGRAM HERE!
ret ; return to DOS
pname endp
code ends
end pname