pub fn mode(&self) -> Mode {
        match self.bits & 0b11111 {
            0b10000 => Mode::User,
            0b10001 => Mode::Fiq,
            0b10010 => Mode::Irq,
            0b10011 => Mode::Supervisor,
            0b10111 => Mode::Abort,
            0b11011 => Mode::Undefined,
            0b11111 => Mode::System,
            _ => Mode::Unknown,
        }
    }
/// Returns the content of the M bits
Returns the content of the M bits
Returns the content of the M bits
pub fn mode(&self) -> Mode {
        match self.bits & 0b11111 {
            0b10000 => Mode::User,
            0b10001 => Mode::Fiq,
            0b10010 => Mode::Irq,
            0b10011 => Mode::Supervisor,
            0b10111 => Mode::Abort,
            0b11011 => Mode::Undefined,
            0b11111 => Mode::System,
            _ => Mode::Unknown,
        }
    }
pub fn mode ( & self ) -> Mode { match self . bits & 0b11111 { 0b10000 => Mode :: User , 0b10001 => Mode :: Fiq , 0b10010 => Mode :: Irq , 0b10011 => Mode :: Supervisor , 0b10111 => Mode :: Abort , 0b11011 => Mode :: Undefined , 0b11111 => Mode :: System , _ => Mode :: Unknown , } }
Returns the content of the M bits
Returns the content of the M bits
&self
&self