ARM Technical Support Knowledge Articles

REVERSE ORDER DW KEYWORD

Applies to: A51 Macro Assembler

Answer


Information in this article applies to:


QUESTION

Is it possible to specify little-endian vs. big endian format for the A51 Assembler's DW instruction?

ANSWER

There is no way to specify the endianness of the DW directive, however, the following macro stores a word in reverse byte order:

RDW MACRO DWVAL
    IF NUL DWVAL
        EXITM
    ENDIF
    DB LOW DWVAL
    DB HIGH DWVAL
ENDM

Article last edited on: 2001-01-05 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