Browse Prior Art Database

Interrupt Processing in a Structure Programming Environment on a Stack Microprocessor

IP.com Disclosure Number: IPCOM000088200D
Original Publication Date: 1977-May-01
Included in the Prior Art Database: 2005-Mar-04
Document File: 1 page(s) / 12K

Publishing Venue

IBM

Related People

Lang, DJ: AUTHOR [+4]

Abstract

The occurrence of interrupts in a structured programming environment represents, on current processors, considerable difficulties and is, at best, an ill-defined state of affairs. That is, the interrupt, because of processor architecture, does not fit well into the concepts of structured programming. Its activation is not well predicted and, when it occurs, causes an ungentle disruption of current operations. Most texts on structured programming ignore the subject.

This text was extracted from a PDF file.
This is the abbreviated version, containing approximately 52% of the total text.

Page 1 of 1

Interrupt Processing in a Structure Programming Environment on a Stack Microprocessor

The occurrence of interrupts in a structured programming environment represents, on current processors, considerable difficulties and is, at best, an ill- defined state of affairs. That is, the interrupt, because of processor architecture, does not fit well into the concepts of structured programming. Its activation is not well predicted and, when it occurs, causes an ungentle disruption of current operations. Most texts on structured programming ignore the subject.

A further problem with interrupt handling, and especially interrupt handling in a structured programming environment, is the uncertainty involved in the correctness of the instruction address (as derived by the interrupt type). That is, the current processors are incapable of detecting invalid target address. This is especially a problem in programming systems which must dynamically alter interrupt target addresses to account for relocatability, as well as for other (system-related) purposes.

This article describes a uniform method for invoking interrupt processing in a structured programming environment using a stack microprocessor. The method comprises the steps of: (1) recognizing the interrupt type, (2) selecting the predefined process for servicing the interrupt, (3) encapsulating into the stack the current process utilizing the identical mechanisms invoked for program "calls", (4) allocating a new level in the stack for the...