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.

69 lines
1.7 KiB

  1. ;----------------------------Module-Header------------------------------;
  2. ; Module Name: GENDATA.BLT
  3. ;
  4. ; Data definitions for BitBLT.
  5. ;
  6. ; Created: In Windows' distant past (c. 1983)
  7. ;
  8. ; Copyright (c) 1983 - 1987 Microsoft Corporation
  9. ;
  10. ; This file is a catchall for data definitions other that code templates
  11. ; for BitBLT.
  12. ;
  13. ; This file is part of a set that makes up the Windows BitBLT function
  14. ; at driver-level.
  15. ; 03/06/92 dstseng change bitmask_tbl1/bitmask_tbl2 to private
  16. ;-----------------------------------------------------------------------;
  17. ; The following two bitmask tables are used for fetching
  18. ; the first and last byte used-bits bitmask.
  19. ; public bitmask_tbl1
  20. ; public _bitmask_tbl1
  21. bitmask_tbl1 label byte
  22. _bitmask_tbl1 label byte
  23. db 11111111b ;Masks for leftmost byte
  24. db 01111111b
  25. db 00111111b
  26. db 00011111b
  27. db 00001111b
  28. db 00000111b
  29. db 00000011b
  30. db 00000001b
  31. ; public bitmask_tbl2
  32. ; public _bitmask_tbl2
  33. bitmask_tbl2 label byte
  34. _bitmask_tbl2 label byte
  35. db 10000000b ;Masks for rightmost byte
  36. db 11000000b
  37. db 11100000b
  38. db 11110000b
  39. db 11111000b
  40. db 11111100b
  41. db 11111110b
  42. db 11111111b
  43. ; phase_tbl1 is used for loading the "used" bits and "saved" bits
  44. ; bitmasks for cases 1,2,3 where the step direction is left to
  45. ; right. If it weren't for the case of zero, this could be done
  46. ; with a simple rotate of 00FF. For cases 4,5,6, a simple rotate
  47. ; can create the mask needed.
  48. ; public phase_tbl1
  49. phase_tbl1 label word
  50. db 11111111b,00000000b ;Used bits, saved bits
  51. db 00000001b,11111110b
  52. db 00000011b,11111100b
  53. db 00000111b,11111000b
  54. db 00001111b,11110000b
  55. db 00011111b,11100000b
  56. db 00111111b,11000000b
  57. db 01111111b,10000000b