// The bus behaves similar to an NES, as the address range is larger than the actual
// bits that are pointed at. This function maps the address to the actual bit range.
The bus behaves similar to an NES, as the address range is larger than the actual
bits that are pointed at. This function maps the address to the actual bit range.
The bus behaves similar to an NES as the address range is larger than the actual bits that are pointed at . This function maps the address to the actual bit range .
fn map_ram_address(&self, address: u16) -> u16 {
        if address < memory_range::RAM.end {
            // $0000-$07FF  $0800  2KB internal RAM
            // $0800-$0FFF  $0800  Mirrors of $0000-$07FF
            // $1000-$17FF  $0800
            // $1800-$1FFF  $0800
            return memory_range::RAM_ACTUAL.mask() & address;
        }
        address
    }
fn map_ram_address ( & self , address : u16 ) -> u16 { if address < memory_range :: RAM . end { // $0000-$07FF  $0800  2KB internal RAM // $0800-$0FFF  $0800  Mirrors of $0000-$07FF // $1000-$17FF  $0800 // $1800-$1FFF  $0800 return memory_range :: RAM_ACTUAL . mask ( ) & address ; } address }
The bus behaves similar to an NES, as the address range is larger than the actual
bits that are pointed at.
The bus behaves similar to an NES as the address range is larger than the actual bits that are pointed at .
&self
address
u16