Ppu.Pprocessor
pprocessor.ml - PPU Logic
type ppu = {
lcdc : Io.Virtual_register.virtual_register;
stat : Io.Virtual_register.virtual_register;
lyc : Io.Virtual_register.virtual_register;
ly : Io.Virtual_register.virtual_register;
scanline_cycles : int Stdlib.ref;
frame_cycles : int Stdlib.ref;
}
Emulates PPU state
val _init_ppu : unit -> ppu
Returns initialized PPU state
val update_ppu_cycles : ppu -> int -> unit
Synchronizes the PPU with other hardware
val get_mode : ppu -> ppu_status
Compute the current PPU phase based on the STAT virtual register
val set_mode : ppu -> int -> unit
Update the current PPU phase