ARM Technical Support Knowledge Articles

BIT-ADDRESSABLE DATA VARIABLES

Applies to: A51 Macro Assembler

Answer


Information in this article applies to:


QUESTION

How do I create a data variables that is bit-adderssable in the A51 assembler?

ANSWER

The following example program shows you how to accomplish this:

BIT_VAR         DATA    20h

FUNNY_ERROR     BIT     BIT_VAR.0
STAT_ERROR      BIT     BIT_VAR.1
ANOTHER_ERROR   BIT     BIT_VAR.2

cseg    at      0

        MOV     BIT_VAR, #0

        CLR     FUNNY_ERROR
        SETB    STAT_ERROR

        JNB     ANOTHER_ERROR, loop

loop:   jmp loop


END

SEE ALSO

Article last edited on: 2001-03-31 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