Документ взят из кэша поисковой машины. Адрес оригинального документа : http://www.naic.edu/~phil/hardware/vertex/sharemegsvertex/lcu/Sun/include/pctcp/dos.mac
Дата изменения: Fri Dec 24 16:56:11 1999
Дата индексирования: Thu Jan 15 14:21:36 2009
Кодировка:

Поисковые слова: туманность андромеды
;
; $Header: H:\devkit.dos\vcs\include\dos.mav 1.3 26 Apr 1994 16:41:28 paul $
;

SUBTTL DOS.MAC - Segment Definitions for DOS C compilers

; Copyright (C) 1988-1994 by FTP Software Inc.
;
; This software is furnished under a license and may be used and copied
; only in accordance with the terms of such license and with the
; inclusion of the above copyright notice. This software or any other
; copies thereof may not be provided or otherwise made available to any
; other person. No title to and ownership of the software is hereby
; transferred.
;
; The information in this software is subject to change without notice
; and should not be construed as a commitment by FTP Software, Inc.
;
; Edit history:
; 30-Sep-91 paul added stack segment
;

IFDEF _32BIT ;;;; 32-bit protected mode
.386p
else ;;;; real mode
INTVECT SEGMENT AT 0
INTVECT ENDS
endif

_TEXT SEGMENT BYTE PUBLIC 'CODE'
_TEXT ENDS
_DATA SEGMENT WORD PUBLIC 'DATA'
_DATA ENDS

; MSC always puts STACK in DGROUP, but Borland never does. Furthermore,
; in huge model, the Borland linker completely loses its mind, and puts
; _BSS *after* the stack, which has the effect of drawing the stack into
; DGROUP. Since no devkit sources use the CONST, _BSS, or STACK segments,
; we won't even define them for Borland (but we will leave them for MSC,
; because some of our PC/TCP application code uses them).

ifdef __BORLANDC__

DGROUP GROUP _DATA
ASSUME CS: _TEXT, DS: DGROUP, ES: DGROUP, SS: nothing

else

CONST SEGMENT WORD PUBLIC 'CONST'
CONST ENDS
_BSS SEGMENT WORD PUBLIC 'BSS'
_BSS ENDS
STACK SEGMENT PARA STACK 'STACK'
STACK ENDS

DGROUP GROUP CONST, _BSS, _DATA, STACK
ASSUME CS: _TEXT, DS: DGROUP, ES: DGROUP, SS: DGROUP

endif

;
; $Log: H:\devkit.dos\vcs\include\dos.mav $
;
; Rev 1.3 26 Apr 1994 16:41:28 paul
; Only define _TEXT and _DATA for Borland.
;
; Rev 1.2 26 Jan 1994 23:07:34 carvalho
;
; Result of v3.0 branch and v2.3 trunk merge.
;
; Rev 1.1.1.0 29 Dec 1993 13:36:22 paul
; For 32-bit, we need the .386 directive, but not the interrupt vector segment
;
; Rev 1.1 10 Dec 1993 16:19:30 paul
; For Borland, removed the stack segment from DGROUP.
; NOTE: this requires -D__BORLANDC__ in builtins.bcc
;
; Rev 1.0 03 Feb 1992 11:45:10 paul
; Initial revision.
;