Cx51 User's Guide
On-Line Manuals
The C51 library includes definitions for a number of macros you can use in your programs.