Module Cpu.Interrupts

interrupts.ml - Logic for CPU Interrupts

type interrupt_handler = {
  1. cycles_since_last_interrupt : int Stdlib.ref;
  2. interrupts_enabled : bool Stdlib.ref;
  3. _IE : Utils.U8.u8 Stdlib.ref;
  4. _IF : Utils.U8.u8 Stdlib.ref;
}
val _init_interrupt_handler : unit -> interrupt_handler
val enable_interrupts : interrupt_handler -> unit
val disable_interrupts : interrupt_handler -> unit
val execute_next : 'a -> int