Transfer Status Register And Scanpc Primitive - Motorola MC68020 User Manual

Table of Contents

Advertisement

For the predecrement addressing mode, the operands are written to memory with
descending addresses, but the bytes within each operand are written to memory with
ascending addresses. As an example, Figure 7-38 shows the format in long-word-
oriented memory for two 12-byte operands transferred from the coprocessor to the
effective address using the –(An) addressing mode. The processor decrements the
address register by the size of an operand before the operand is transferred. It writes the
bytes of the operand to ascending memory addresses. When the transfer is complete, the
address register has been decremented by the total number of bytes transferred. The
MC68020/EC020 transfers the data using long-word transfers whenever possible.
31
An – 2 LENGTH
*
= FINAL An
An – LENGTH
INITIAL An
NOTE:
OP0, Byte (0) is the first byte written to memory
OP0, Byte (L–1) is the last byte of the first operand written to memory
OP1, Byte (0) is the first byte of the second operand written to memory
OP1, Byte (L–1) is the last byte written to memory
Figure 7-38. Operand Format in Memory for Transfer to –(An)

7.4.17 Transfer Status Register and ScanPC Primitive

The transfer status register and the scanPC primitive transfers values between the
coprocessor and the MC68020/EC020 SR. On an optional basis, the scanPC also makes
transfers. This primitive applies to general category instructions. If the coprocessor issues
this primitive during the execution of a conditional category instruction, the main processor
initiates protocol violation exception processing. Figure 7-39 shows the format of the
transfer status register and scanPC primitive.
15
14
13
CA
PC
DR
Figure 7-39. Transfer Status Register and ScanPC Primitive Format
The transfer status register and scanPC primitive uses the CA, PC, and DR bits as
described in 7.4.2 Coprocessor Response Primitive General Format.
The SP bit selects the scanPC option. If SP = 1, the primitive transfers both the scanPC
and SR. If SP = 0, only the SR is transferred.
MOTOROLA
24
23
OP1, BYTE (0)
OP0, BYTE (0)
12
11
10
9
0
0
0
1
M68020 USER'S MANUAL
16
15
8
7
6
5
4
SP
0
0
0
8
7
OP1, BYTE (L – 1)
OP0, BYTE (L – 1)
3
2
1
0
0
0
0
0
0
0
7- 45

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Mc68ec020

Table of Contents