
%ifndef __ENTRYSW_MAC__
 %assign __ENTRYSW_MAC__ 1

%assign _DOSCODEHMA		1
%assign _RELOCATEDOSCODE	1

		; Write a label "%1" (only if DOSCODE isn't relocated) and
		; "relocated%1" (always).
	%imacro relocated 1-2.nolist
%ifnidni %2, device
 %ifnidni %2, amis
  %ifn _RELOCATEDOSCODE
%1:
	global %1
  %endif
 %endif
%endif
relocated%1:				; always used for local labels
	global relocated%1
	%endmacro

%if _RELOCATEDOSCODE
DOSENTRYADJUSTSEGMENT equ 60h - 26h
%else
DOSENTRYADJUSTSEGMENT equ 0
%endif
DOSENTRYADJUSTOFFSET equ DOSENTRYADJUSTSEGMENT * 16

DOSENTRYDEVICEBASE equ 10h

%endif
