src/cpu.c
void dec_reg(byte *reg) {
	(*reg)--;
	bit_val(&P, flagZ, *reg == 0);
	bit_val(&P, flagN, bit_test(*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 dec_reg(byte *reg) {
	(*reg)--;
	bit_val(&P, flagZ, *reg == 0);
	bit_val(&P, flagN, bit_test(*reg, 7));
	PC++;
	cpu_cyclesThisSec += 2;
}
void dec_reg ( byte * reg ) { ( * reg ) -- ; bit_val ( & P , flagZ , * reg == 0 ) ; bit_val ( & P , flagN , bit_test ( * 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