windows-nt/Source/XPSP1/NT/multimedia/directx/dxcrt/i386/mm.inc

34 lines
891 B
PHP
Raw Normal View History

2020-09-26 03:20:57 -05:00
;***
;mm.inc - macros to write memory model dependent code
;
; Copyright (c) 1987-1994, Microsoft Corporation. All rights reserved.
;
;Purpose:
; This file contains definitions of a number of macros which
; make the writing of memory model dependent code for the
; 386 a little easier and more portable.
;
;*******************************************************************************
; general code & data size constants & macros
DAT_ADDR_SZ = 4
BDAT_ADDR_SZ = 2
TXT_ADDR_SZ = 4
; Big/Little Endian Definitions for Long Integers
ifdef bigend ; Big Endian (hi word at low address)
LOWORD equ [4]
HIWORD equ [0]
else ; Little Endian (low word at low address)
LOWORD equ [0]
HIWORD equ [4]
endif
; All Model Definitions
BPARGBAS equ TXT_ADDR_SZ+4 ; offset from BP to first argument