Code:
char *RAM = (char *)malloc(0x800);
Instead of having char, it gives me int, and I must have the following to cater.
Code:
CPU.Databus = (unsigned char)CPU.ROMPointer1[(CPU.PC & 0x1FFF)];
Without the (unsigned char), it returns $0FFFFFA9 instead of just plain $A9. Is it normal for malloc to use int instead of char? If not, how can I get around this?