Well, there are two ways to do this, best would be to load the number into a register, then use the NEG
instruction as Hans mention, ie: NEG EAX
would negate eax. The other way would be XOR EAX,EAX SUB EAX,EDX
where edx contains the number you want to negate
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…