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.

33 lines
924 B

  1. ;***
  2. ;mm.inc - macros to write memory model dependent code
  3. ;
  4. ; Copyright (c) 1987-1994, 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. ; general code & data size constants & macros
  13. DAT_ADDR_SZ = 4
  14. BDAT_ADDR_SZ = 2
  15. TXT_ADDR_SZ = 4
  16. ; Big/Little Endian Definitions for Long Integers
  17. ifdef bigend ; Big Endian (hi word at low address)
  18. LOWORD equ [4]
  19. HIWORD equ [0]
  20. else ; Little Endian (low word at low address)
  21. LOWORD equ [0]
  22. HIWORD equ [4]
  23. endif
  24. ; All Model Definitions
  25. BPARGBAS equ TXT_ADDR_SZ+4 ; offset from BP to first argument