I’m really not sure if this is the right forum to ask this question, as this is not a game but an emu/interpreter but I’m freaking out over here.
Long story short:
I have to fetch the first two bytes from a byte array, which are A2 and CC (in hexadecimal of course).
For that task I do the following…
int opcode = memory[pc] << 8 | memory[pc+1]
But instead of give me “A2CC” together it gives me “FFCC”
Please JGO I’m about to hang myself.
Thank you.