Posted: Fri Jun 04, 2010 10:40 am Post subject: Question about bytes and opcodes etc..
I have been wondering for a while how the memory viewer in cheat engine knows where to put a "new line" after a certain amount of bytes and how it converts the bytes to opcodes. My guess is that it knows when one asm "command" is complete, but that leaves my second question.
usually:
read the bytes until it's not a prefix byte
Then look up what kind of opcode it is
Then depending on the opcode read the modrm byte
and if the modrm byte says it has a sib byte, also the byte(sib) after that
and finally the addressing offset if it has one
the first byte doesn't always define what exact opcode it is, in some cases where there is no secondary parameter the byte can be shared with multiple instructions. In that case you must check the /reg field of the modrm byte to find the opcode. And then there's also some multi-byte opcodes (simd, 0f xx) _________________
Do not ask me about online cheats. I don't know any and wont help finding them.
Like my help? Join me on Patreon so i can keep helping
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum You cannot attach files in this forum You can download files in this forum