fn index_big_endian(&self, ptr: usize) -> u32 {
        (self.memory[ptr] as u32) << 24
            | (self.memory[ptr + 1] as u32) << 16
            | (self.memory[ptr + 2] as u32) << 8
            | (self.memory[ptr + 3] as u32)
    }
/// Indexes in big endian an instruction from memory
Indexes in big endian an instruction from memory
Indexes in big endian an instruction from memory
fn index_big_endian(&self, ptr: usize) -> u32 {
        (self.memory[ptr] as u32) << 24
            | (self.memory[ptr + 1] as u32) << 16
            | (self.memory[ptr + 2] as u32) << 8
            | (self.memory[ptr + 3] as u32)
    }
fn index_big_endian ( & self , ptr : usize ) -> u32 { ( self . memory [ ptr ] as u32 ) << 24 | ( self . memory [ ptr + 1 ] as u32 ) << 16 | ( self . memory [ ptr + 2 ] as u32 ) << 8 | ( self . memory [ ptr + 3 ] as u32 ) }
Indexes in big endian an instruction from memory
Indexes in big endian an instruction from memory
&self
ptr
usize