ARM Technical Support Knowledge Articles

WHAT IS THE ADDRESS RANGE ACCEPTABLE BY XBYTE MACRO

Applies to: C51 C Compiler

Answer


Information in this article applies to:


QUESTION

When I use the XBYTE macro, what is the largest element I can access? In the following example, how long may Z be?

#define Z 0x0000

XBYTE[Z] = 0xAA;
XBYTE[Z] = 0x55;

ANSWER

Macros, like XBYTE and CBYTE, may be used to access explicit memory addresses. These macros access the full XDATA or CODE address spaces which are 64K Bytes long. Therefore, the largest value you may specify for the XBYTE or CBYTE index is 65535.

MORE INFORMATION

SEE ALSO

Article last edited on: 2005-07-15 10:11:15

Rate this article

[Bad]
|
|
[Good]
Disagree? Move your mouse over the bar and click

Did you find this article helpful? Yes No

How can we improve this article?

Link to this article
Copyright © 2011 ARM Limited. All rights reserved. External (Open), Non-Confidential