Keil Logo Arm Logo

A251 User's Guide

SFR Assembler Statement

Arguments
sfr  sfr_symbol = address;
Description

The sfr statement defines a special function register:

Where

sfr_symbol is the name of the Special Function Register (SFR) symbol to define.
address is the address of the SFR.

The sfr statement allows you to define SFR data in a consistent manner with the C251 compiler. With this statement you may use a generic SFR register definition file for the C251 compiler and the A251 assembler.

Example
sfr  P0 = 0x80;
sfr  P1 = 0x90;

Keil logo

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.