I'm trying to emulate the Z80 of the GameBoy but I have questions (my first real attempt to write a GB emulator :) )
I have this this function that handles the SBC:
{
T_8bit l_regvalue; // Value to SUB (T_8bit is unsigned char )
T_8bit l_accvalue; // ACC value (T_8bit is unsigned char )...