EasyManuals Logo

Motorola MC68020 User Manual

Motorola MC68020
306 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Page #275 background imageLoading...
Page #275 background image
9- 20 M68020 USER’S MANUAL MOTOROLA
9.8.2 Module Return
The RTM instruction is used to return from a module. For the type $00 module stack
frame, the processor reloads the condition codes, the PC, and the module data area
pointer register from the frame. The frame is removed from the top of the stack, the
argument count is added to the stack pointer, and execution returns to the calling module.
For the type $01 module stack frame, the processor reads the access level, condition
codes, PC, saved module data area pointer, and saved stack pointer from the module
stack frame. The access level is written to the DAL for validation by external hardware; the
processor then reads the access status to check the validation. If the external hardware
determines that the change in access right should not be granted, the access status is
zero, and the processor takes a format error exception. No visible processor registers are
changed, nor should the current access level enforced by external hardware be changed.
If the external hardware determines that the change in access rights should be granted,
the external hardware changes its access level, the values read from the module stack
frame are loaded into the corresponding processor registers, the argument count is added
to the new stack pointer value, and execution returns to the calling module.
If the called module does not wish the saved module data pointer to be loaded into a
register, the RTM instruction word can select register A7, and the loaded value will be
overwritten with the correct stack pointer value after the module stack frame is
deallocated.

Table of Contents

Questions and Answers:

Question and Answer IconNeed help?

Do you have a question about the Motorola MC68020 and is the answer not in the manual?

Motorola MC68020 Specifications

General IconGeneral
BrandMotorola
ModelMC68020
CategoryComputer Hardware
LanguageEnglish

Related product manuals