fn update_zero_and_negative_flag(&mut self, value: u8) {
        // Numbers can be interpreted as signed or unsigned. The negative flag only
        // cares if the most-significant bit is 1 or 0.
        let negative = 0b1000_0000;
        self.set_status_flag(StatusFlag::Zero, value == 0);
        self.set_status_flag(StatusFlag::Negative, value & negative == negative);
    }
/// These flags are commonly set together.
These flags are commonly set together.
These flags are commonly set together .
fn update_zero_and_negative_flag(&mut self, value: u8) {
        // Numbers can be interpreted as signed or unsigned. The negative flag only
        // cares if the most-significant bit is 1 or 0.
        let negative = 0b1000_0000;
        self.set_status_flag(StatusFlag::Zero, value == 0);
        self.set_status_flag(StatusFlag::Negative, value & negative == negative);
    }
fn update_zero_and_negative_flag ( & mut self , value : u8 ) { // Numbers can be interpreted as signed or unsigned. The negative flag only // cares if the most-significant bit is 1 or 0. let negative = 0b1000_0000 ; self . set_status_flag ( StatusFlag :: Zero , value == 0 ) ; self . set_status_flag ( StatusFlag :: Negative , value & negative == negative ) ; }
These flags are commonly set together.
These flags are commonly set together .
&mut self
value
u8
&mut self
value
u8