ARM Technical Support Knowledge Articles

INSTRUCTION GENERATED BY PDATA OR XDATA VARIABLE

Applies to: A51 Macro Assembler

Answer


Information in this article applies to:


QUESTION

I'm using PDATA and XDATA in my project. What assembly language instructions are generated for accesses to these memory areas:

ANSWER

PDATA refers to one 256-byte "page" external data. Therefore, PDATA pointers may be stored in a single byte. PDATA memory is accesses using the MOVX @R0 and MOVX @R1 instructions. The upper byte of a PDATA address comes directly from the P2 register. Refer to the startup code in STARTUP.A51 for information on how to set P2.

XDATA refers to the full 64K of addressable external data. Therefore, XDATA pointers may be stored in a word (2 bytes). XDATA memory is accessed using the MOVX @DPTR instruction.

MORE INFORMATION

Article last edited on: 2005-09-22 11:29:45

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