![]() |
|
#2
|
|||
|
|||
|
You can move the value to a register and use NEG on it (assuming x86, 32 bit):
Code:
mov eax, [val] neg eax mov [val], eax Code:
xor exc, ecx mov eax, [val] sub ecx, eax mov [val], ecx |
| The Following User Says Thank You to mcp For This Useful Post: | ||
chants (01-19-2017) | ||
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Hex-Rays and negative structure offsets | jonwil | General Discussion | 3 | 02-20-2019 10:37 |