Rte Instruction For Throwaway Four-Word Frame - Motorola MC68020 User Manual

Table of Contents

Advertisement

ENTRY
TEMP
(SP) +
READ FORMAT WORD
SR
TEMP
SP
SP + 6
OTHERWISE
INVALID FORMAT WORD
FORMAT CODE = $1
(THROWAWAY FRAME)
OTHERWISE
TAKE FORMAT
ERROR EXCEPTION
FORMAT CODE = $0 (FOUR-WORD FRAME)
OTHERWISE
PC
(SP) +
OTHER FORMATS
SP
SP + 6
SR
TEMP
EXIT
Figure 6-7. RTE Instruction for Throwaway Four-Word Frame
For the coprocessor midinstruction stack frame, the processor reads the SR, PC,
instruction address, internal register values, and the evaluated effective address from the
stack, restores these values to the corresponding internal registers, and increments the
stack pointer by 20. The processor then reads from the response register of the
coprocessor that initiated the exception to determine the next operation to be performed.
Refer to Section 7 Coprocessor Interface Description for details of coprocessor-related
exceptions.
For both the short and long bus fault stack frames, the processor first checks the format
value on the stack for validity. In addition, for the long stack frame, the processor
compares the version number in the stack with its own version number. The version
number is located in the most significant nibble (bits 15–12) of the word at location SP +
$36 in the long stack frame. This validity check is required in a multiprocessor system to
ensure that the data is properly interpreted by the RTE instruction. The RTE instruction
also reads from both ends of the stack frame to make sure it is accessible. If the frame is
invalid or inaccessible, the processor takes a format error or a bus error exception,
respectively. Otherwise, the processor reads the entire frame into the proper internal
registers, deallocates the stack, and resumes normal processing. Once the processor
begins to load the frame to restore its internal state, the assertion of the BERR signal
MOTOROLA
M68020 USER'S MANUAL
6- 21

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Mc68ec020

Table of Contents