Memory.Vmem
vmem.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 -> char
Read from memory
val write : mem_ctrl -> int -> char -> unit
Write to memory
val update_hw_cycles : mem_ctrl -> int -> unit
Synchronize cycles across individual components