src/cpu.c
void load_register(byte *regPtr, byte value, int cycles, int pcIncrease, const char *regMnemonic) {
	log_instruction(pcIncrease - 1, regMnemonic, value);
	*regPtr = value;

	bit_val(&P, flagZ, *regPtr == 0);
	bit_val(&P, flagN, bit_test(*regPtr, 7));

	PC += pcIncrease;
	cpu_cyclesThisSec += cycles;
}
///////////////////////////////////////////////////////////////////////////////////////////
///////////////////////////////LOAD REGISTERS INC/DEC REGION///////////////////////////////
///////////////////////////////////////////////////////////////////////////////////////////
LOAD REGISTERS INC/DEC REGION
LOAD REGISTERS INC / DEC REGION
void load_register(byte *regPtr, byte value, int cycles, int pcIncrease, const char *regMnemonic) {
	log_instruction(pcIncrease - 1, regMnemonic, value);
	*regPtr = value;
	bit_val(&P, flagZ, *regPtr == 0);
	bit_val(&P, flagN, bit_test(*regPtr, 7));
	PC += pcIncrease;
	cpu_cyclesThisSec += cycles;
}
void load_register ( byte * regPtr , byte value , int cycles , int pcIncrease , const char * regMnemonic ) { log_instruction ( pcIncrease - 1 , regMnemonic , value ) ; * regPtr = value ; bit_val ( & P , flagZ , * regPtr == 0 ) ; bit_val ( & P , flagN , bit_test ( * regPtr , 7 ) ) ; PC += pcIncrease ; cpu_cyclesThisSec += cycles ; }
LOAD REGISTERS INC/DEC REGION
LOAD REGISTERS INC / DEC REGION