disassembly - How do I determine the start and end of instructions in an object file? -
Therefore, I'm trying to write an emulator, or at least understanding how it works. Understand, especially the Z80 and x86, but I have never understood that an object file (or in my case, a .gb ROM file) indicates the start and end of a command.
I am trying to parse the opcode for each instruction, but it has not happened that there is a line break after every instruction. So how does this happen? For me, it looks like a bunch of bytes, in which there is no difference between opcode and its operand.
For most CPUs - and I believe that catch 80 in this category - a The length of the instruction lies.
It is,
Comments
Post a Comment