English
Language : 

MC68020RC25E Datasheet, PDF (146/306 Pages) Freescale Semiconductor, Inc – Object-Code Compatible with Earlier M68000 Microprocessors
Freescale Semiconductor, Inc.
ENTRY
TEMP (SP) +
READ FORMAT WORD
SR TEMP
SP SP + 6
INVALID FORMAT WORD
TAKE FORMAT
ERROR EXCEPTION
OTHERWISE
OTHERWISE
FORMAT CODE = $1
(THROWAWAY FRAME)
FORMAT CODE = $0 (FOUR-WORD FRAME)
OTHERWISE
OTHER FORMATS
PC (SP) +
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
For More Information On This Product,
Go to: www.freescale.com