src/cpu.c
void bit(byte value, int cycles, int pcIncrease) {
	log_instruction(pcIncrease - 1, "\tBIT #$%02X\t", value);

	byte tmp = A & value;
	bit_val(&P, flagZ, tmp == 0);
	bit_val(&P, flagV, bit_test(value, 6));
	bit_val(&P, flagN, bit_test(value, 7));

	cpu_cyclesThisSec += cycles;
	PC += pcIncrease;
}
/**
 * BIt Test checks if one or more bits of a memory position are set
 */
BIt Test checks if one or more bits of a memory position are set
BIt Test checks if one or more bits of a memory position are set
void bit(byte value, int cycles, int pcIncrease) {
	log_instruction(pcIncrease - 1, "\tBIT #$%02X\t", value);
	byte tmp = A & value;
	bit_val(&P, flagZ, tmp == 0);
	bit_val(&P, flagV, bit_test(value, 6));
	bit_val(&P, flagN, bit_test(value, 7));
	cpu_cyclesThisSec += cycles;
	PC += pcIncrease;
}
void bit ( byte value , int cycles , int pcIncrease ) { log_instruction ( pcIncrease - 1 , " \t \t " , value ) ; byte tmp = A & value ; bit_val ( & P , flagZ , tmp == 0 ) ; bit_val ( & P , flagV , bit_test ( value , 6 ) ) ; bit_val ( & P , flagN , bit_test ( value , 7 ) ) ; cpu_cyclesThisSec += cycles ; PC += pcIncrease ; }
BIt Test checks if one or more bits of a memory position are set
BIt Test checks if one or more bits of a memory position are set