Format Error - Motorola CPU32 Reference Manual

Hide thumbs Also See for CPU32:
Table of Contents

Advertisement

breakpoint is not made pending until the instruction corresponding to the request is ex-
ecuted.
A pending breakpoint can be acknowledged between instructions or at the end of ex-
ception processing. To acknowledge a breakpoint, the CPU performs a read from CPU
space $0 at location $1E. See 5.3 Types of Address Space for a detailed description
of CPU space operations.
If the bus cycle terminates normally, instruction execution continues with the next in-
struction, as if no breakpoint request occurred. If the bus cycle is terminated by BERR,
the CPU begins exception processing. Data returned during this bus cycle is ignored.
Exception processing follows the regular sequence. Vector number 12 (offset $30) is
internally generated. The program counter of the currently executing instruction, the
program counter of the next instruction to execute, and a copy of the status register
are saved on the supervisor stack.

6.2.7 Format Error

The processor checks certain data values for control operations. The validity of the
stack format code and, in the case of a bus cycle fault format, the version number of
the processor that generated the frame are checked during execution of the RTE in-
struction. This check ensures that the program does not make erroneous assumptions
about information in the stack frame.
If the format of the control data is improper, the processor generates a format error ex-
ception. This exception saves a four-word format exception frame and then vectors
through vector table entry number 14. The stacked program counter is the address of
the RTE instruction that discovered the format error.
6.2.8 Illegal or Unimplemented Instructions
An instruction is illegal if it contains a word bit pattern that does not correspond to the
bit pattern of the first word of a legal CPU32 instruction, if it is a MOVEC instruction
that contains an undefined register specification field in the first extension word, or if it
contains an indexed addressing mode extension word with bits [5:4] = 00 or bits [3:0]
≠ 0000.
If an illegal instruction is fetched during instruction execution, an illegal instruction ex-
ception occurs. This facility allows the operating system to detect program errors or to
emulate instructions in software.
Word patterns with bits [15:12] = 1010 (referred to as A-line opcodes) are unimple-
mented instructions. A separate exception vector (vector 10, offset $28) is given to un-
implemented instructions to permit efficient emulation.
Word patterns with bits [15:12] = 1111 (referred to as F-line opcodes) are used for
M68000 Family instruction set extensions. They can generate an unimplemented in-
struction exception caused by the first extension word of the instruction or by the ad-
dressing mode extension word. A separate F-line emulation vector (vector 11, offset
$2C) is used for the exception vector.
CPU32
REFERENCE MANUAL
EXCEPTION PROCESSING
MOTOROLA
6-9

Advertisement

Table of Contents
loading

Table of Contents