摘要 |
<p>A system for switching resources of a computer among a plurality of programs is provided, including a processor for executing programs for the computer. The system further includes a set of register banks coupled to the processor for storing information for the plurality of programs, where each register bank includes a plurality of program information registers in correspondence with the plurality of programs, the set of register banks having a selection input for selecting a current program for the processor to execute. A status register is coupled to the processor for storing in a prioritized order a status bit corresponding to each program, where each status bit has a status bit address and indicates a status of the corresponding program as being one of active and inactive. Each location of the status register is connected to a program determination logic circuit for determining the status bit address of a highest priority active program. The program determination logic circuit is coupled to the set of register banks for providing the status bit address of the highest priority active program to the selection input, where the highest priority active program is selected as the current program.</p> |