home *** CD-ROM | disk | FTP | other *** search
/ Tricks of the Windows Gam…ming Gurus (2nd Edition) / Disc2.iso / vc98 / crt / src / mm.inc < prev    next >
Text File  |  1998-06-17  |  924b  |  34 lines

  1. ;***
  2. ;mm.inc - macros to write memory model dependent code
  3. ;
  4. ;       Copyright (c) 1987-1997, Microsoft Corporation.  All rights reserved.
  5. ;
  6. ;Purpose:
  7. ;       This file contains definitions of a number of macros which
  8. ;       make the writing of memory model dependent code for the
  9. ;       386 a little easier and more portable.
  10. ;
  11. ;*******************************************************************************
  12.  
  13. ; general code & data size constants & macros
  14.  
  15. DAT_ADDR_SZ =   4
  16. BDAT_ADDR_SZ =  2
  17.  
  18. TXT_ADDR_SZ =   4
  19.  
  20. ; Big/Little Endian Definitions for Long Integers
  21.  
  22. ifdef   bigend                  ; Big Endian (hi word at low address)
  23. LOWORD  equ     [4]
  24. HIWORD  equ     [0]
  25. else                            ; Little Endian (low word at low address)
  26. LOWORD  equ     [0]
  27. HIWORD  equ     [4]
  28. endif
  29.  
  30.  
  31. ; All Model Definitions
  32.  
  33. BPARGBAS equ    TXT_ADDR_SZ+4   ; offset from BP to first argument
  34.