Hello I'm writing an emulator for Game Boy.
I use this reference : Gameboy CPU (LR35902) instruction set
This document states that opcodes :
0xE2 LD (C),A
and
0xF2 LD A,(C)
have a length of 2.
The Game Boy CPU Manual says that these instructions respectively :
Put value at address $FF00 + register C into A.
and
Put A into address $FF00 + register C.
I think it has length of 1 because the opcode is self sufficient, it doesn't need another value to be interpreted. If it has a length of 2, what's the purpose of the second byte ?