Leaked source code of windows server 2003
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

38 lines
1010 B

  1. ;***
  2. ;mm.inc - macros to write memory model dependent code
  3. ;
  4. ; Copyright (c) 1987-2001, 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. ;Revision History:
  12. ; 05-18-89 SKS Removed ES references from pointer macros -- DS is used
  13. ; 09-01-89 GJF Fixed copyright date.
  14. ; 11-19-93 SMK Modified for 32 bit hosting.
  15. ;
  16. ;*******************************************************************************
  17. ; general code & data size constants & macros
  18. DAT_ADDR_SZ = 4
  19. BDAT_ADDR_SZ = 2
  20. TXT_ADDR_SZ = 4
  21. ; Big/Little Endian Definitions for Long Integers
  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. ; All Model Definitions
  30. BPARGBAS equ TXT_ADDR_SZ+4 ; offset from BP to first argument