
%ifndef ENTRYSEGNAS
%define ENTRYSEGNAS 1

%include "lmacros3.mac"
%include "entrysw.mac"
[list -]

%define HARDALIGN 2
%ifdef MSHARD
 %define HARDALIGN 16
%endif

%if _RELOCATEDOSCODE
 %define DOSENTRYCLASS DOSENTRY
%else
 %define DOSENTRYCLASS DOSCODE
%endif

addsection DOSENTRY, class=%[DOSENTRYCLASS]
%ifn _RELOCATEDOSCODE
 [list +]
 %define DOSENTRYGROUP DOSCODEGROUP
 [list -]
 %include "dcodeseg.nas"
%endif
addsection DOSENTRYHARD, class=%[DOSENTRYCLASS] align=HARDALIGN
addsection DOSENTRYINIT, class=%[DOSENTRYCLASS] align=2

%if _RELOCATEDOSCODE
group DOSENTRYGROUP DOSENTRY DOSENTRYHARD DOSENTRYINIT
%else
 group DOSCODEGROUP DOSENTRY \
	DOSCODETABLE DOSCODECODE DOSBIOCODE BIOCODE \
	DOSENTRYHARD DOSENTRYINIT
%endif

[list +]
usesection DOSENTRY

%endif
