Motorola MC68340 User Manual page 221

Integrated processor with dma
Hide thumbs Also See for MC68340:
Table of Contents

Advertisement

Command Sequence:
Operand Data:
None
Result Data:
None
5.6.2.8.13 Call User Code (CALL). This instruction provides a convenient way to patch
user code. The return PC is stacked at the location pointed to by the current SP. The
stacked PC serves as a return address to be restored by the RTS command that
terminates the patch routine. After stacking is complete, the 32-bit operand data is loaded
into the PC. The pipeline is flushed and refilled from the location pointed to by the new
PC, BDM is exited, and normal mode instruction execution begins.
If a bus error or address error occurs during return address
stacking, the CPU returns an error status via the serial
interface and remains in BDM.
If a bus error or address error occurs on the first instruction
prefetch from the new PC, the processor exits BDM and the
error is trapped as a normal mode exception. The stacked
value of the current PC may not be valid in this case,
depending on the state of the machine prior to entering BDM.
For address error, the PC does not reflect the true return PC.
Instead, the stacked fault address is the (odd) return PC.
Command Format:
15
14
13
12
0
0
0
0
5-84
Freescale Semiconductor, Inc.
GO
NORMAL
???
MODE
XXX
"ILLEGAL"
NOTE
11
10
9
8
1
0
0
0
MC68340 USER'S MANUAL
For More Information On This Product,
Go to: www.freescale.com
NEXT CMD
"NOT READY"
7
6
5
4
0
0
0
0
3
2
1
0
0
0
0
0
MOTOROLA

Advertisement

Table of Contents
loading

Table of Contents