Cpu.Interrupts
interrupts.ml - Logic for CPU Interrupts
type interrupt_handler = {
cycles_since_last_interrupt : int Stdlib.ref;
interrupts_enabled : bool Stdlib.ref;
_IE : Utils.U8.u8 Stdlib.ref;
_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