ARM Technical Support Knowledge Articles

LOCATING AN ECODE SEGMENT AT A FIXED ADDRESS

Applies to: AX51 Macro Assembler

Answer


Information in this article applies to:


QUESTION

I'm creating a small assembly program for the Philipx MX and I'm trying to locate code in the extended code space at a specific address. How should I do that?

ANSWER

The following example demonstrates one way to locate an ECODE segment at a specific address.

                CSEG    AT 0
                LJMP    RESET

MY_CODE_SEG     SEGMENT   CODE
RSEG    MY_CODE_SEG

RESET:
                EJMP    ECODE_FUNC


MY_ECODE_SEG    SEGMENT   ECODE   AT   0x820000
RSEG    MY_ECODE_SEG

ECODE_FUNC:
                INC     R0
                INC     R1
                JMP     ECODE_FUNC

                END

Article last edited on: 2002-05-15 00:00:00

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