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.

54 lines
1.3 KiB

  1. /*++
  2. Copyright (c) 1995 Microsoft Corporation
  3. Module Name:
  4. frag8.c
  5. Abstract:
  6. Instuction fragments which operate on BYTES
  7. Author:
  8. 12-Jun-1995 BarryBo
  9. Revision History:
  10. --*/
  11. #include <nt.h>
  12. #include <ntrtl.h>
  13. #include <nturtl.h>
  14. #include <windows.h>
  15. #include <stdio.h>
  16. #include "fragp.h"
  17. #include "frag8.h"
  18. // set up to include common functions
  19. #define MSB 0x80
  20. #define LMB 7 // Left Most Bit
  21. #define UTYPE unsigned char
  22. #define STYPE signed char
  23. #define GET_VAL GET_BYTE
  24. #define PUT_VAL PUT_BYTE
  25. #define FRAGCOMMON0(fn) FRAG0(fn ## 8)
  26. #define FRAGCOMMON1(fn) FRAG1(fn ## 8, UTYPE)
  27. #define FRAGCOMMON1IMM(fn) FRAG1IMM( fn ## 8, UTYPE)
  28. #define FRAGCOMMON2IMM(fn) FRAG2IMM( fn ## 8, UTYPE, UTYPE)
  29. #define FRAGCOMMON2(fn) FRAG2(fn ## 8, UTYPE)
  30. #define FRAGCOMMON2REF(fn) FRAG2REF(fn ## 8, UTYPE)
  31. #define FRAGCOMMON3(fn) FRAG3(fn ## 8, UTYPE, UTYPE, UTYPE)
  32. #define AREG al
  33. #define BREG bl
  34. #define CREG cl
  35. #define DREG dl
  36. #define SET_FLAGS_ADD SET_FLAGS_ADD8
  37. #define SET_FLAGS_SUB SET_FLAGS_SUB8
  38. #define SET_FLAGS_INC SET_FLAGS_INC8
  39. #define SET_FLAGS_DEC SET_FLAGS_DEC8
  40. // include the common functions
  41. #include "shared.c"
  42. #include "shareda.c"