Keil™, An ARM® Company

Ax51 User's Guide

SFR Assembler Statement

Arguments
sfr  sfr_symbol = address;
Description

The sfr statement defines a special function register:

Where

sfr_symbolis the name of the Special Function Register (SFR) symbol to define.
addressis the address of the SFR.

The sfr statement allows you to define SFR 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
sfr  P0 = 0x80;
sfr  P1 = 0x90;