fn cpx(&mut self) -> bool {
        self.fetch();

        let sub = self.x.wrapping_sub(self.fetched);

        self.flags.set(Flags::N, sub & 0x80 != 0);
        self.flags.set(Flags::Z, sub == 0);
        self.flags.set(Flags::C, self.x >= self.fetched);

        true
    }
// CPX: Compare X register
// Affects: N Z C
Compare X register
Affects: N Z C
Compare X register Affects : N Z C
fn cpx(&mut self) -> bool {
        self.fetch();
        let sub = self.x.wrapping_sub(self.fetched);
        self.flags.set(Flags::N, sub & 0x80 != 0);
        self.flags.set(Flags::Z, sub == 0);
        self.flags.set(Flags::C, self.x >= self.fetched);
        true
    }
fn cpx ( & mut self ) -> bool { self . fetch ( ) ; let sub = self . x . wrapping_sub ( self . fetched ) ; self . flags . set ( Flags :: N , sub & 0x80 != 0 ) ; self . flags . set ( Flags :: Z , sub == 0 ) ; self . flags . set ( Flags :: C , self . x >= self . fetched ) ; true }
CPX: Compare X register
Affects: N Z C
CPX : Compare X register Affects : N Z C
&mut self