RosettaCodeData/Task/Twos-complement/X86-64-Assembly/twos-complement.x86-64

6 lines
161 B
Plaintext

mov rax, 1968 ; 1968 in rax
neg rax ; -1968 should be in rax
;------------------
not rax
inc rax ; 1968 should be in rax again.