Ppu.Pprocessorpprocessor.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 -> ppuReturns initialized PPU state
val update_ppu_cycles : ppu -> int -> unitSynchronizes the PPU with other hardware
val get_mode : ppu -> ppu_statusCompute the current PPU phase based on the STAT virtual register
val set_mode : ppu -> int -> unitUpdate the current PPU phase