Program counter stacking method and apparatus for nested subroutines and interrupts
AssigneeHoneywell Information Systems Inc.
InventorsMing T. Miu, John J. Bradley
Life of this patent
Estimating the term…
Loading patent…
AssigneeHoneywell Information Systems Inc.
InventorsMing T. Miu, John J. Bradley
Estimating the term…
A computer system which facilitates the execution of nested subroutines and interrupts is disclosed. As each branch transfer within the program is executed by a control area logic, a microcommand initiates the transfer of the return address, which has been derived from the address in the present routine, to a first register of a push down stack. In addition, the microcommand also pushes down one level the contents of all of the registers in the stack containing previously stored return addresses. Thus, a sequential return to unfinished routines or subroutines is provided. When the subroutine or hardware interrupt service routine is completed, a code in the address field enables the return address of the previously branched from or interrupted routine to be retrieved from the first register in the push down stack and to provide it as the address of the next instruction to be executed. The retrieval of the return address from the push down stack also pops all other stored return addresses one level in the stack. In addition to providing multiple levels of subroutine and interrupt nesting, any number of subroutines or hardware interrupts may be partially completed since the last operating subroutine or hardware interrupt service routine is always the first one to be completed. Logic is also provided to detect the occurrence of a hardware interrupt during a return sequence such that the requirement to simultaneously push and pop the stack is properly handled.
A method of effecting transfers to and from subroutines and interrupt service routines comprising the steps of:
A data processing system for executing a routine which accesses a plurality of subroutines and for executing a plurality of interrupt service routines in response to a plurality of interrupts, said system comprising:
A data processing system for sequentially accessing routines and subroutines and for accessing interrupt service routines;
Dependencies are inferred from the claim text.