SFR | Address | Description |
P0 | 0x80 | Port 0 |
SP | 0x81 | Stack pointer |
DPL | 0x82 | Data pointer low |
DPH | 0x83 | Data pointer high |
PCON | 0x87 | Power control register |
TCON | 0x88 | Timer/counter control register |
TMOD | 0x89 | Timer mode |
TL0 | 0x8A | Timer low 0 |
TL1 | 0x8B | Timer low 1 |
TH0 | 0x8C | Timer high 0 |
TH1 | 0x8D | Timer high 1 |
P1 | 0x90 | Port 1 |
SCON | 0x98 | Serial port control register |
SBUF | 0x99 | Serial buffer |
P2 | 0xA0 | Port 2 |
IE | 0xA8 | Interrupt enable register 0 |
P3 | 0xB0 | Port 3 |
PSW | 0xD0 | Program status word |
ACC | 0xE0 | Accumulator |
B | 0xF0 | B-register |
1. Intel/Motorola macros. These are defined:
"macname MACRO args". Please see the manual for
details.
2. IAR Micro-Series macros. These are defined:
"MACRO %macname".
Note that you cannot have a label in the
beginning of that line. You can use both types of
macros in a program, but you cannot use Micro-series
operators in Intel/Motorola macros. Intel/Motorola
macros allow \A through \Z as argument references,
but they are not valid for Micro-series macros (some
of them are used as operators).
For more information on the IAR Micro-Series
macros, please see the A8051 V2 manual.
Copyright 2001 IAR Systems. All rights reserved.