RosettaCodeData/Task/Twos-complement/X86-64-Assembly/twos-complement.x86-64
2025-02-27 18:35:13 -05:00

5 lines
161 B
Text

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