Join GitHub today
GitHub is home to over 31 million developers working together to host and review code, manage projects, and build software together.Sign up
Assembly instructions behave differently as assembly instructions and as debugger commands #2108
Some assembly instructions that are valid commands behave differently when entered as a command and when executed as an assembly instruction. For example, the following
Debugger version: Jan 20 2019
The script commands are not meant to behave like asm commands, just look like them (for example they also don't update the flags in the native context either for obvious reasons). If you want to write a 32 bit value to rcx you probably should just write
There is some documentation, but this behavior has been like this since the very first release (before I knew what x64 does to 32 bit registers honestly) so I'm reluctant to change it. Feel free to update the documentation to clarify this: https://github.com/x64dbg/docs/blob/master/introduction/Input.md
If you'd like to add your own script handler you can do so with GuiRegisterScriptLanguage. You could quite easily use this to have a repl-like interface that emulates asm instructions in the native context.