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.

36 lines
1.1 KiB

  1. /* asmctype.h -- include file for microsoft 80x86 assembler
  2. **
  3. ** microsoft (r) macro assembler
  4. ** copyright (c) microsoft corp 1986. all rights reserved
  5. **
  6. ** randy nevin
  7. */
  8. #define _AB 0x01 /* blank */
  9. #define _AO 0x02 /* operator */
  10. #define _AL 0x04 /* end of line */
  11. #define _A1 0x08 /* legal as first character of token */
  12. #define _AT 0x10 /* legal as token character */
  13. #define _AF 0x20 /* character is legal as file name */
  14. #define _AS 0x40 /* character is sign + or - */
  15. #define _AZ 0x80 /* character is line terminator */
  16. #ifndef ASMINP
  17. extern UCHAR _asmctype_[];
  18. extern char _asmcupper_[];
  19. #endif /* ASMINP */
  20. #define LEGAL1ST(c) (_asmctype_[c] & _A1)
  21. #define TOKLEGAL(c) (_asmctype_[c] & _AT)
  22. #define ISBLANK(c) (_asmctype_[c] & _AB)
  23. #define ISFILE(c) (_asmctype_[c] & _AF)
  24. #define ISEOL(c) (_asmctype_[c] & _AL)
  25. #define ISSIGN(c) (_asmctype_[c] & _AS)
  26. #define ISTERM(c) (_asmctype_[c] & _AZ)
  27. #define ISOPER(c) (_asmctype_[c] & _AO)
  28. #define NEXTC() (*lbufp++)
  29. #define PEEKC() (*lbufp)
  30. #define BACKC() (lbufp--)
  31. #define SKIPC() (lbufp++)
  32. #define MAP(c) (_asmcupper_[c])