Motorola MC68020 User Manual page 178

Table of Contents

Advertisement

The instruction can include as many as five effective address extension words following
the F-line operation word in the cpRESTORE instruction format. These words contain any
additional information required to calculate the effective address specified by bits 5–0 of
the F-line operation word.
All memory addressing modes except the predecrement addressing mode are valid.
Invalid effective address encodings cause the MC68020/EC020 to initiate F-line emulator
exception processing (refer to 7.5.2.2 F-Line Emulator Exceptions).
7.2.3.4.2 Protocol. Figure 7-18 shows the protocol for the coprocessor context restore
instruction. When the main processor executes a cpRESTORE instruction, it first reads
the coprocessor format word from the effective address in the instruction. This format
word contains a format code and a length field. During cpRESTORE operation, the main
processor retains a copy of the length field to determine the number of bytes to be
transferred to the coprocessor during the cpRESTORE operation and writes the format
word to the restore CIR to initiate the coprocessor context restore.
MAIN PROCESSOR
M1
RECOGNIZE COPROCESSOR INSTRUCTION F-LINE
OPERATION WORD
M2
READ COPROCESSOR FORMAT CODE FROM
EFFECTIVE ADDRESS SPECIFIED IN OPERATION WORD
M3
WRITE COPROCESSOR FORMAT WORD TO
RESTORE CIR
M4
READ RESTORE CIR
M5
IF (FORMAT = INVALID FORMAT) WRITE $0001 ABORT
CODE TO CONTROL CIR AND INITIATE FORMAT ERROR
EXCEPTION PROCESSING (SEE NOTE 1)
M6
IF (FORMAT = EMPTY/RESET) GO TO M7; ELSE, TRANSFER
NUMBER OF BYTES SPECIFIED BY FORMAT WORD TO
OPERAND CIR (SEE NOTE 2)
M7
PROCEED WITH EXECUTION OF NEXT INSTRUCTION
NOTES: 1. See 7.6.1.5 Format Error.
2. The MC68020/EC020 uses the length field in the format word read during M2 to determine the number of
bytes to read from memory and write to the operand CIR.
Figure 7-18. Coprocessor Context Restore Instruction Protocol
When the coprocessor receives the format word in the restore CIR, it must terminate any
current operations and evaluate the format word. If the format word represents a valid
coprocessor context as determined by the coprocessor design, the coprocessor returns
the format word to the main processor through the restore CIR and prepares to receive
the number of bytes specified in the format word through its operand CIR.
7-24
C1
FORMAT WORD
C2
IN THE RESTORE CIR
C3
INDICATED IN FORMAT WORD THROUGH OPERAND CIR
M68020 USER'S MANUAL
COPROCESSOR
TERMINATE CURRENT OPERATIONS AND EVALUATE
IF (INVALID FORMAT) PLACE INVALID FORMAT CODE
IF (VALID FORMAT) RECEIVE NUMBER OF BYTES
MOTOROLA

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Mc68ec020

Table of Contents