How do I determine the start and end of instructions in an object file?

后端 未结 2 1010
天命终不由人
天命终不由人 2020-12-19 23:53

So, I\'ve been trying to write an emulator, or at least understand how stuff works. I have a decent grasp of assembly, particularly z80 and x86, but I\'ve never really under

2条回答
  •  半阙折子戏
    2020-12-20 00:04

    For most CPUs - and I believe Z80 falls in this category - the length of an instruction is implicit.

    That is, you must decode the instruction in order to figure out how long it is.

提交回复
热议问题