Variables may be located at absolute memory locations in your C program
source modules using the _at_ keyword. The usage for this feature is:
type _memory_space_ variable_name _at_ constant;
where:
memory_space is the memory space for the variable. If missing from the
declaration, the default memory space is used. Refer to
“Memory Models” on page 94 for more information about
the default memory space.
type is the variable type.
variable_name is the variable name.
constant is the address at which to locate the variable.
The absolute address following _at_ must conform to the physical boundaries of
the memory space for the variable. The Cx51 compiler checks for invalid
address specifications.
这上面的用法没有分号啊,不过加了分号后不再报错,只是不知at函数用上没....
|