Keil™, An ARM® Company

Ax51 User's Guide

SBIT Assembler Statement

Arguments
sbit  sfr_symbol = bit-address;
Description

The sbit statement defines a special function register bit:

  • Where

    sfr_symbolis the name of the Special Function Register (SFR) symbol to define.
    bit-addressis the address of the SFR bit in the format address^bit_position.

The sbit statement allows you to define SFR bit data in a consistent manner with the Cx51 compiler. With this statement you may use a generic SFR register definition file for the Cx51 compiler and the Ax51 assembler.

Example
sbit  P0_0 = P0^0;
sbit  P0_1 = 0x90^1;