Документ взят из кэша поисковой машины. Адрес оригинального документа : http://www.naic.edu/~phil/hardware/vertex/sharemegsvertex/lcu/pcr/devkit/INCLUDE/MMODEL.INC
Дата изменения: Thu Oct 28 19:16:20 1993
Дата индексирования: Thu Jan 15 15:05:38 2009
Кодировка:

Поисковые слова: comet holmes
;
; $Header: J:\devkit.dos\vcs\include\mmodel.inv 1.3 28 Oct 1993 12:16:20 arnoff $
;

;
; MMODEL.DEF - definitions for PC/TCP "PC" library for multiple
; memory models.
;
; Copyright 1987 - 1993, 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
; 10-Aug-87 jbvb Create, based on NETLIB\SYSLIB.ASM
; 11-Dec-89 jbvb Add POPFF definition.

; If we're doing large code space, then make sure that we do far returns
; and that we take into account that there are 4 bytes of return address
; on the stack instead of 2.
IFDEF LCODE

CPROC MACRO func
PUBLIC func
func PROC FAR
ENDM

SARG EQU 6

ELSE

CPROC MACRO func
PUBLIC func
func PROC NEAR
ENDM

SARG EQU 4

ENDIF


; define the width of a pointer
IFDEF LDATA
SPTR EQU 4 ; 4 bytes in large data models
ELSE
SPTR EQU 2 ; 2 bytes in small ones
ENDIF


; define the sizes of other arguments
SINT EQU 2
SLONG EQU 4

; Pop Flags macro works around 80286 chip bug.

POPFF MACRO
local poplab
jmp $+3
poplab: iret
push cs
call poplab
ENDM

;
; $Log: J:\devkit.dos\vcs\include\mmodel.inv $
;
; Rev 1.3 28 Oct 1993 12:16:20 arnoff
; cleaned up.
;
; Rev 1.2 28 Jul 1993 15:31:44 arnoff
; Merge Lilac Branch into trunk.
;
; Rev 1.1.1.0 03 May 1993 16:31:56 irina
; irina Merged with changes made to 2.21 kernel tree
;
; Rev 1.1 22 Jun 1992 16:33:18 paul
; track changes from 2.1
;
; Rev 1.0 30 Jan 1992 08:26:24 arnoff
;
;