From e611b132f9b8abe35b362e5870b74bce94a1e58e Mon Sep 17 00:00:00 2001 From: Adam Date: Sat, 16 May 2020 20:51:50 -0700 Subject: initial commit --- private/nw/nw16/tsr/segorder.inc | 113 +++++++++++++++++++++++++++++++++++++++ 1 file changed, 113 insertions(+) create mode 100644 private/nw/nw16/tsr/segorder.inc (limited to 'private/nw/nw16/tsr/segorder.inc') diff --git a/private/nw/nw16/tsr/segorder.inc b/private/nw/nw16/tsr/segorder.inc new file mode 100644 index 000000000..689c62fa2 --- /dev/null +++ b/private/nw/nw16/tsr/segorder.inc @@ -0,0 +1,113 @@ +;/*++ +; +;Copyright (c) 1991 Microsoft Corporation +; +;Module Name: +; +; segorder.inc +; +;Abstract: +; +; This module contains the segment order and segment macros +; +;Author: +; +; Richard Firth (rfirth) 05-Sep-1991 +; +;Environment: +; +; Dos mode only +; +;Notes: +; +; When initially loaded, the NT VDM redir has the following order: +; +; +----------------------+ +; | | +; | Resident Code | +; | | +; +----------------------+ +; | | +; | Resident Data | +; | | +; +----------------------+ ----------------+ +; | | | +; | Initialisation Code | <- entry point v +; | | +; +----------------------+ +; | | all the stuff between these +; | Initialisation Data | arrows is discarded if we stay +; | | resident. Note that the redir +; +----------------------+ does not uninstall +; | | +; | Initialisation Stack | ^ +; | | | +; +----------------------+ ----------------+ +; +;Revision History: +; +; 05-Sep-1991 rfirth +; Created +; +;--*/ + + + +ResidentStart segment public para 'code' +ResidentStart ends + +ResidentCode segment public word 'code' +ResidentCode ends + +ResidentData segment public word 'data' +ResidentData ends + +ResidentEnd segment public para 'data' +ResidentEnd ends + +ResidentGroup group ResidentStart, ResidentCode, ResidentData, ResidentEnd + +InitCode segment public para 'init' +InitCode ends + +InitData segment public word 'init' +InitData ends + +InitStack segment stack para 'stack' +InitStack ends + +; +; macros to avoid having to type in/possibly alter segment header guff +; + +ResidentCodeStart macro +ResidentCode segment public word 'code' +endm + +ResidentCodeEnd macro +ResidentCode ends +endm + +ResidentDataStart macro +ResidentData segment public word 'data' +endm + +ResidentDataEnd macro +ResidentData ends +endm + +InitCodeStart macro +InitCode segment public para 'init' +endm + +InitCodeEnd macro +InitCode ends +endm + +InitDataStart macro +InitData segment public word 'init' +endm + +InitDataEnd macro +InitData ends +endm -- cgit v1.2.3