Cpu Programming Model; Figure 1-2 User Programming Model; Figure 1-3 Supervisor Programming Model Supplement - Motorola MC68VZ328 User Manual

Motorola mc68vz328 integrated processor user's manual
Table of Contents

Advertisement

1.2.1

CPU Programming Model

The CPU has 32-bit registers and a 32-bit program counter, which are shown in Figure 1-2. The first eight
registers (D7–D0) are data registers that are used for byte (8-bit), word (16-bit), and long-word (32-bit)
operations. When being used to manipulate data, the data registers affect the status register (SR). The next
seven registers (A6–A0) and the user stack pointer (USP) can function as software stack pointers and base
address registers. These registers can be used for word and long-word operations, but they do not affect the
status register. The D7–D0 and A6–A0 registers can be used as index registers.
31
31
31
31
In supervisor mode, the upper byte of the status register and the supervisor stack pointer (SSP) can also be
programmed, as shown in Figure 1-3.
31
Figure 1-3. Supervisor Programming Model Supplement
The status register contains the interrupt mask with seven available levels, as well as an extend (X),
negative (N), zero (Z), overflow (V), and carry (C) condition code. The T bit indicates when the processor
is in trace mode, and the S bit indicates when it is in supervisor or user mode.
16 15
8
7
16
15
16 15
7
Figure 1-2. User Programming Model
16 15
8
7
15
Introduction
0
D0
D1
D2
D3
Data Registers
D4
D5
D6
D7
0
A0
A1
A2
A3
Address Registers
A4
A5
A6
0
A7 (USP)
User Stack Pointer
0
PC
Program Counter
0
SR
Status Register
0
A7 (SSP)
Supervisor Stack
Pointer
0
SR
Status Register
CPU
1-5

Advertisement

Table of Contents
loading

Table of Contents