6-18
M68000 8-/16-/32-BIT MICROPROCESSORS USER'S MANUAL
MOTOROLA
additional words are reserved for future use by Motorola.
PROGRAMCOUNTER (LOW)
PROGRAMCOUNTER (HIGH)
0
STATUS REGISTER
VECTOR OFFSET
1000
SPECIAL STATUS WORD
FAULT ADDRESS (HIGH)
15 14 13 12 11 10
9
8
7
6
5
4
3
2
1
FAULT ADDRESS (LOW)
UNUSED, RESERVED
DATA OUTPUT BUFFER
DATA INPUT BUFFER
VERSION
NUMBER
INSTRUCTION INPUT BUFFER
UNUSED, RESERVED
UNUSED, RESERVED
INTERNAL INFORMATION, 16 WORDS
SP
NOTE: The stack pointer is decremented by 29 words, although only 26
words of information are actually written to memory. The three
Figure 6-8. Exception Stack Order (Bus and Address Error)
The value of the saved program counter does not necessarily point to the instruction that
was executing when the bus error occurred, but may be advanced by as many as five
words. This incrementing is caused by the prefetch mechanism on the MC68010 that
always fetches a new instruction word as each previously fetched instruction word is used.
However, enough information is placed on the stack for the bus error exception handler to
determine why the bus fault occurred. This additional information includes the address
being accessed, the function codes for the access, whether it was a read or a write
access, and the internal register included in the transfer. The fault address can be used by
an operating system to determine what virtual memory location is needed so that the
requested data can be brought into physical memory. The RTE instruction is used to
reload the internal state of the processor at the time of the fault. The faulted bus cycle is
then rerun, and the suspended instruction is completed. If the faulted bus cycle is a read-
modify-write, the entire cycle is rerun, whether the fault occurred during the read or the
write operation.
An alternate method of handling a bus error is to complete the faulted access in software.
Using this method requires the special status word, the instruction input buffer, the data
input buffer, and the data output buffer image. The format of the special status word is