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

The system RAM, mirrored across 16 KiB.

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.

The second 16 KiB page of RAM on the cartridge.

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.

The page of ROM indicated by the parameter.

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]

Returns the "default value" for a type. Read more

impl Display for MemoryPage
[src]

Formats the value using the given formatter. Read more

impl Clone for MemoryPage
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Copy for MemoryPage
[src]

impl Debug for MemoryPage
[src]

Formats the value using the given formatter. Read more

impl Eq for MemoryPage
[src]

impl PartialEq for MemoryPage
[src]

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

impl Hash for MemoryPage
[src]

Feeds this value into the given [Hasher]. Read more

Feeds a slice of this type into the given [Hasher]. Read more

Auto Trait Implementations

impl Send for MemoryPage

impl Sync for MemoryPage