Assembler:Commands:NEG

From Cheat Engine
Revision as of 02:13, 26 November 2017 by OldCheatEngineUser (talk | contribs) (Created page with 'Category:Assembler '''command''' neg ''operand'' The neg instruction will subtract the operand from itself twice. Example: <pre>1 - 1 = 0 0 - 1 = -1</pre> This is what n…')
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

command neg operand

The neg instruction will subtract the operand from itself twice.


Example:

1 - 1 = 0

0 - 1 = -1

This is what neg instruction perform.


Operand = -Operand


Replaces the value of operand (the destination operand) with its two's complement. (This operation is equivalent to subtracting the operand from 0.) The destination operand is located in a general-purpose register or a memory location.

x86.renejeschke.de/html/file_module_x86_id_216.html


Command Parameters

Parameter Description
operand The operand to perform a Negate operation on


Examples

neg al
neg ah
neg ax
neg eax
neg rax
neg [edx+110]
neg [rdx+10]
neg [00123abc]
neg [UserDefinedSymbol]


See also


External links