Keil Logo

A51: REVERSE ORDER DW KEYWORD


Information in this article applies to:

  • C51 Version 5.50a
  • C51 Version 6.10a

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

Last Reviewed: Friday, January 5, 2001


Did this article provide the answer you needed?
 
Yes
No
Not Sure
 
  Arm logo
Important information

This site uses cookies to store information on your computer. By continuing to use our site, you consent to our cookies.

Change Settings

Privacy Policy Update

Arm’s Privacy Policy has been updated. By continuing to use our site, you consent to Arm’s Privacy Policy. Please review our Privacy Policy to learn more about our collection, use and transfers
of your data.