| View previous topic :: View next topic |
| Author |
Message |
TurboKid Newbie cheater
Reputation: 0
Joined: 01 Aug 2018 Posts: 14
|
Posted: Tue Aug 18, 2020 2:59 pm Post subject: Same opcodes,different Bytes |
|
|
Hi,while I was trying to make a cheat for unlimited ammo in Enter the Gungeon I've encountered something strange as you can see on the screenshot,there are two identical opcodes(sub ecx,r15d)
but the bytes are different
If I choose to assemble the instruction and I put the same opcode again,then the bytes change to (44 29 F9) instead of (41 2B CF)
How is this possible? does that means different bytes can be interpreted as the same oppcode?
| Description: |
|
| Filesize: |
119.55 KB |
| Viewed: |
1637 Time(s) |

|
|
|
| Back to top |
|
 |
Dark Byte Site Admin
Reputation: 471
Joined: 09 May 2003 Posts: 25840 Location: The netherlands
|
Posted: Tue Aug 18, 2020 3:30 pm Post subject: |
|
|
yes, there are multiple versions that do the same thing
in this case there are 2 similar instructions
| Code: |
29 xx sub reg/memlocation,reg
2b xx sub reg,reg/memlocation
|
since no memorylocation is needed it's going to be
sub reg,reg
and both versions can be picked for that.
_________________
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 |
|
| Back to top |
|
 |
TurboKid Newbie cheater
Reputation: 0
Joined: 01 Aug 2018 Posts: 14
|
Posted: Wed Aug 19, 2020 12:41 pm Post subject: |
|
|
| Ok thanks for your answer,that means next time I modify an instruction,I better copy both the opcode and the bytes in order to restore it
|
|
| Back to top |
|
 |
|