make more of memory private

This commit is contained in:
Alex Janka 2023-02-07 09:13:45 +11:00
parent 1a0a45527a
commit afd95afd71

View file

@ -80,18 +80,18 @@ impl Default for Joypad {
#[allow(dead_code)]
pub struct Memory {
pub(super) bootrom: ROM,
pub(super) bootrom_enabled: bool,
pub(super) rom: ROM,
pub(super) vram: [u8; 8192],
pub(super) ram: [u8; 8192],
pub(super) switchable_ram: [u8; 8192],
pub(super) cpu_ram: [u8; 128],
pub(super) oam: [u8; 160],
pub(super) interrupts: u8,
bootrom: ROM,
bootrom_enabled: bool,
rom: ROM,
vram: [u8; 8192],
ram: [u8; 8192],
switchable_ram: [u8; 8192],
cpu_ram: [u8; 128],
oam: [u8; 160],
interrupts: u8,
pub(super) ime: bool,
pub(super) ime_scheduled: u8,
pub(super) io: [u8; 76],
io: [u8; 76],
pub(super) user_mode: bool,
joypad: Joypad,
}