Code:
if (CPU.A16 < 0x10)
sprintf(Output, "A: 0x000%X", CPU.A16);
sprintf(Output, "A: 0x000%X", CPU.A16);
...won't work but...
Code:
if (CPU.A16 < 0x10)
sprintf(Output, "A: 0x0%X", CPU.A16);
sprintf(Output, "A: 0x0%X", CPU.A16);
...just because I remove those two 0's. It puts the correct data into Output, but TextOut just returns 'The paramenter is incorrect.'.
I mean, WTF?