Keil Logo Arm Logo

Technical Support

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 05, 2001


Did this article provide the answer you needed?
 
Yes
No
Not Sure
 

Keil logo

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.