Keil Logo

EBIT Assembler Statement

Arguments
symbol EBIT address
Description

The EBIT statement assigns an address (in the range 20h-7Fh or a 251 bit-addressable SFR) to the specified symbol. The symbol may not be redefined. In addition, the EBIT statement may create a bit name for the following bit-addressable items:

  • Absolute addresses from 20H.0-7FH.7. For example, 23H.2.
  • SFR bits which are in the bit-addressable space. For example, P3.3, or PSW.7. This creates an absolute bit because SFR symbols are absolute.
  • Bits based on bytes contained in bit-addressable data sections. This results in relocatable bits if the bit-addressable data section is relocatable.
  • Bits based on bytes contained in external DATA which are defined in bit-addressable data sections of other modules.
See Also

BSEG, CODE, DATA, IDATA, XDATA

Example
EXTRN   DATA : BYTE  (EXTBYTE)

DATA_SEG        SEGMENT DATA EBITADDRESSABLE

RSEG            DATA_SEG              ; Relocatable
                                      ; bit-addressable
                                      ; segment

BITS:           DS      1             ; A 1-byte
                                      ; bit-addressable
                                      ; variable

ALARM           EBIT    BITS.0        ; Bit 0 in BITS
D1_OPEN         EBIT    ALARM+1       ; Bit 1 in BITS
D2_OPEN         EBIT    ALARM+2       ; Bit 2 in BITS

X_FLAG          EBIT    EXTBYTE.5     ; Bit 5 in external EXTBYTE
  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.