|
| BIT Assembler Statement| Arguments |
symbol BIT address
| | Description | The BIT statement assigns an address (in the range 20h-2Fh or an 8051 bit-addressable SFR) to the specified symbol. The symbol may not be redefined. In addition, the BIT statement may create a bit name for the following bit-addressable items: | | See Also | BSEG, CODE, DATA, IDATA, XDATA | | Example |
DATA_SEG SEGMENT DATA BITADDRESSABLE
RSEG DATA_SEG ; Relocatable
; bit-addressable
; segment
BITS: DS 1 ; A 1-byte
; bit-addressable
; variable
ALARM BIT BITS.0 ; Bit 0 in BITS
D1_OPEN BIT ALARM+1 ; Bit 1 in BITS
D2_OPEN BIT ALARM+2 ; Bit 2 in BITS
P1_2 BIT 90h.2 ; SFR P1.2
|
|
|