| |||||
Technical Support Support Resources
Product Information | A51: BIT-ADDRESSABLE DATA VARIABLESInformation in this article applies to:
QUESTIONHow do I create a data variables that is bit-adderssable in the A51 assembler? ANSWERThe 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 ALSOLast Reviewed: Saturday, March 31, 2001 | ||||
| |||||