English
Language : 

MC68306FC16 Datasheet, PDF (70/191 Pages) Motorola, Inc – Integrated EC000 Processor
4.3 PROGRAMMING MODEL
The EC000 core executes instructions in one of two modes—user mode or supervisor
mode. The user mode provides the execution environment for the majority of application
programs. The supervisor mode, which allows some additional instructions and privileges,
is used by the operating system and other system software.
To provide upward compatibility of code written for a specific implementation of the EC000
core, the user programmer's model, illustrated in Figure 4-1, is common to all
implementations. In the user programmer's model, the EC000 core offers 16, 32-bit,
general-purpose registers (D0–D7, A0–A7), a 32-bit program counter, and an 8-bit
condition code register. The first eight registers (D0–D7) are used as data registers for
byte (8-bit), word (16-bit), and long-word (32-bit) operations. The second set of seven
registers (A0–A6) and the user stack pointer (USP) can be used as software stack
pointers and base address registers. In addition, the address registers can be used for
word and long-word operations. All of the 16 registers can be used as index registers. The
supervisor programmer's model consists of supplementary registers used in the
supervisor mode.
31
0
D0
D1
D2
D3
D4
DATA REGISTERS
D5
D6
D7
A0
A1
A2
A3
ADDRESS REGISTERS
A4
A5
A6
A7/USP
PC
USER STACK POINTER
PROGRAM COUNTER
CCR
CONDITION CODE REGISTER
USER PROGRAMMING MODEL
31
0
SSP
(CCR) SR
SUPERVISOR STACK POINTER
STATUS REGISTER (CCR IS ALSO SHOWN IN
THE USER PROGRAMMING MODEL)
SUPERVISOR PROGRAMMING MODEL
EC1
Figure 4-1. Programmer's Model
4-2
MC68306 USER'S MANUAL
MOTOROLA