make more of memory private
This commit is contained in:
parent
1a0a45527a
commit
afd95afd71
|
@ -80,18 +80,18 @@ impl Default for Joypad {
|
||||||
|
|
||||||
#[allow(dead_code)]
|
#[allow(dead_code)]
|
||||||
pub struct Memory {
|
pub struct Memory {
|
||||||
pub(super) bootrom: ROM,
|
bootrom: ROM,
|
||||||
pub(super) bootrom_enabled: bool,
|
bootrom_enabled: bool,
|
||||||
pub(super) rom: ROM,
|
rom: ROM,
|
||||||
pub(super) vram: [u8; 8192],
|
vram: [u8; 8192],
|
||||||
pub(super) ram: [u8; 8192],
|
ram: [u8; 8192],
|
||||||
pub(super) switchable_ram: [u8; 8192],
|
switchable_ram: [u8; 8192],
|
||||||
pub(super) cpu_ram: [u8; 128],
|
cpu_ram: [u8; 128],
|
||||||
pub(super) oam: [u8; 160],
|
oam: [u8; 160],
|
||||||
pub(super) interrupts: u8,
|
interrupts: u8,
|
||||||
pub(super) ime: bool,
|
pub(super) ime: bool,
|
||||||
pub(super) ime_scheduled: u8,
|
pub(super) ime_scheduled: u8,
|
||||||
pub(super) io: [u8; 76],
|
io: [u8; 76],
|
||||||
pub(super) user_mode: bool,
|
pub(super) user_mode: bool,
|
||||||
joypad: Joypad,
|
joypad: Joypad,
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue