fn fetch(&self, pc: u32) -> Result<ThumbCode, Fault> {
        let hw = self.read16(pc)?;

        if is_thumb32(hw) {
            let hw2 = self.read16(pc + 2)?;
            Ok(ThumbCode::Thumb32 {
                opcode: (u32::from(hw) << 16) + u32::from(hw2),
            })
        } else {
            Ok(ThumbCode::Thumb16 { opcode: hw })
        }
    }
// Fetch next Thumb2-coded instruction from current
// PC location. Depending on instruction type, fetches
// one or two half-words.
Fetch next Thumb2-coded instruction from current
PC location. Depending on instruction type, fetches
one or two half-words.
Fetch next Thumb2 - coded instruction from current PC location . Depending on instruction type fetches one or two half - words .
fn fetch(&self, pc: u32) -> Result<ThumbCode, Fault> {
        let hw = self.read16(pc)?;
        if is_thumb32(hw) {
            let hw2 = self.read16(pc + 2)?;
            Ok(ThumbCode::Thumb32 {
                opcode: (u32::from(hw) << 16) + u32::from(hw2),
            })
        } else {
            Ok(ThumbCode::Thumb16 { opcode: hw })
        }
    }
fn fetch ( & self , pc : u32 ) -> Result < ThumbCode , Fault > { let hw = self . read16 ( pc ) ? ; if is_thumb32 ( hw ) { let hw2 = self . read16 ( pc + 2 ) ? ; Ok ( ThumbCode :: Thumb32 { opcode : ( u32 :: from ( hw ) << 16 ) + u32 :: from ( hw2 ) , } ) } else { Ok ( ThumbCode :: Thumb16 { opcode : hw } ) } }
Fetch next Thumb2-coded instruction from current
PC location.
Fetch next Thumb2 - coded instruction from current PC location .
&self
pc
u32
&self
pc
u32