src/cpu.c
void transfer_reg(byte *from_reg, byte *to_reg) {
	*to_reg = *from_reg;
	bit_val(&P, flagZ, *to_reg == 0);
	bit_val(&P, flagN, bit_test(*to_reg, 7));
	PC++;
	cpu_cyclesThisSec += 2;
}
/**
 * All of this instructions have a length of one byte and require two machine cycles
 */
All of this instructions have a length of one byte and require two machine cycles
All of this instructions have a length of one byte and require two machine cycles
void transfer_reg(byte *from_reg, byte *to_reg) {
	*to_reg = *from_reg;
	bit_val(&P, flagZ, *to_reg == 0);
	bit_val(&P, flagN, bit_test(*to_reg, 7));
	PC++;
	cpu_cyclesThisSec += 2;
}
void transfer_reg ( byte * from_reg , byte * to_reg ) { * to_reg = * from_reg ; bit_val ( & P , flagZ , * to_reg == 0 ) ; bit_val ( & P , flagN , bit_test ( * to_reg , 7 ) ) ; PC ++ ; cpu_cyclesThisSec += 2 ; }
All of this instructions have a length of one byte and require two machine cycles
All of this instructions have a length of one byte and require two machine cycles