zeerust 0.2.1

A Z80 CPU Emulator
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
//! The internal representation of the z80's memory.
//! Currently just a large array.
pub const MEMORY_SIZE: usize = 16 * 1024; // 16 kibibytes

pub struct Memory {
    pub memory: [u8; MEMORY_SIZE],
}

impl Default for Memory {
    fn default() -> Self {
        Memory {
            memory: [0; MEMORY_SIZE],
        }
    }
}