fn xor(cpu: &mut Cpu, n: u8, m: u8) -> u8 {
    let r = n ^ m;

    cpu.set_carry(false);
    cpu.set_halfcarry(false);
    cpu.set_substract(false);
    cpu.set_zero(r == 0);

    r
}
/// xor two u8 together, update CPU flags and return the result
xor two u8 together, update CPU flags and return the result
xor two u8 together update CPU flags and return the result
fn xor(cpu: &mut Cpu, n: u8, m: u8) -> u8 {
    let r = n ^ m;
    cpu.set_carry(false);
    cpu.set_halfcarry(false);
    cpu.set_substract(false);
    cpu.set_zero(r == 0);
    r
}
fn xor ( cpu : & mut Cpu , n : u8 , m : u8 ) -> u8 { let r = n ^ m ; cpu . set_carry ( false ) ; cpu . set_halfcarry ( false ) ; cpu . set_substract ( false ) ; cpu . set_zero ( r == 0 ) ; r }
xor two u8 together, update CPU flags and return the result
xor two u8 together update CPU flags and return the result
cpu
&mut Cpu
n
u8
m
u8
cpu
&mut Cpu
n
u8
m
u8