CBYTE
The CBYTE macro accesses individual bytes in the program memory of the 8051. You may use this macro in your programs as follows:
#include <absacc.h> /* Include Macro Definitions */
.
.
.
rval = CBYTE [0x0002];
.
.
.
This example reads the contents of the byte in program memory at address 0002h.
The range of valid index values for this macro is 0-65535.
Related Knowledgebase Articles