Memory.Vmemvmem.ml - Virtual Memory implementation
type mem_ctrl = {model : Boot_roms.Device_boot_rom_select.model;boot_rom_enabled : bool Stdlib.ref;boot_rom : bytes;rom : Rom.rom;vram : Ram.ram_bank;wram : Ram.ram_bank;oam : Ram.ram_bank;hram : Ram.ram_bank;ppu : Ppu.Pprocessor.ppu;}Emulates RAM and ROM state
val read : mem_ctrl -> int -> charRead from memory
val write : mem_ctrl -> int -> char -> unitWrite to memory
val update_hw_cycles : mem_ctrl -> int -> unitSynchronize cycles across individual components