tac0S
Template Affectional Command Operating System
interrupt.cc File Reference

to simulate hardware interrupts. More...

#include "copyright.h"
#include "interrupt.h"
#include "system.h"

Detailed Description

to simulate hardware interrupts.

Author
Olivier Hureau, Hugo Feydel , Julien ALaimo

The hardware provides a routine (SetLevel) to enable or disable interrupts.

In order to emulate the hardware, we need to keep track of all interrupts the hardware devices would cause, and when they are supposed to occur.

This module also keeps track of simulated time. Time advances only when the following occur: interrupts are re-enabled a user instruction is executed there is nothing in the ready queue

DO NOT CHANGE – part of the machine emulation

Copyright (c) 1992-1993 The Regents of the University of California. All rights reserved. See copyright.h for copyright notice and limitation of liability and disclaimer of warranty provisions.