Enum euphrates::hardware::sms_memory::MemoryPage [−][src]
pub enum MemoryPage { SystemRam, FirstCartridgeRam(u8), SecondCartridgeRam(u8), HalfCartridgeRam(u8), Rom(u8), RomButFirstKiB(u8), }
A 16 KiB page of memory.
This is used to indicate, for each of four 16 KiB slots of logical memory, what physical page of memory it's mapped to.
Variants
SystemRam
The system RAM, mirrored across 16 KiB.
FirstCartridgeRam(u8)
The first 16 KiB page of RAM on the cartridge.
Games with the Sega Memory Mapper have 0, 16, or 32 KiB of RAM on board.
SecondCartridgeRam(u8)
The second 16 KiB page of RAM on the cartridge.
HalfCartridgeRam(u8)
The first half of the slot is mapped to a page of ROM indicated by the parameter; the second half is mapped to 8 KiB of on-cartridge RAM.
It seems some Codemasters games have 8 KiB of on-cartridge RAM.
Rom(u8)
The page of ROM indicated by the parameter.
RomButFirstKiB(u8)
The page of ROM indicated by the parameter, except the first KiB of logical memory is mapped to the first KiB of physical ROM.
Trait Implementations
impl Default for MemoryPage
[src]
impl Default for MemoryPage
impl Display for MemoryPage
[src]
impl Display for MemoryPage
fn fmt(&self, f: &mut Formatter) -> Result<(), Error>
[src]
fn fmt(&self, f: &mut Formatter) -> Result<(), Error>
Formats the value using the given formatter. Read more
impl Clone for MemoryPage
[src]
impl Clone for MemoryPage
fn clone(&self) -> MemoryPage
[src]
fn clone(&self) -> MemoryPage
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
impl Copy for MemoryPage
[src]
impl Copy for MemoryPage
impl Debug for MemoryPage
[src]
impl Debug for MemoryPage
fn fmt(&self, f: &mut Formatter) -> Result
[src]
fn fmt(&self, f: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl Eq for MemoryPage
[src]
impl Eq for MemoryPage
impl PartialEq for MemoryPage
[src]
impl PartialEq for MemoryPage
fn eq(&self, other: &MemoryPage) -> bool
[src]
fn eq(&self, other: &MemoryPage) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, other: &MemoryPage) -> bool
[src]
fn ne(&self, other: &MemoryPage) -> bool
This method tests for !=
.
impl Hash for MemoryPage
[src]
impl Hash for MemoryPage
Auto Trait Implementations
impl Send for MemoryPage
impl Send for MemoryPage
impl Sync for MemoryPage
impl Sync for MemoryPage