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

6 lines
161 B
Text
Raw Permalink Normal View History

2025-02-27 18:35:13 -05:00
mov rax, 1968 ; 1968 in rax
neg rax ; -1968 should be in rax
;------------------
not rax
inc rax ; 1968 should be in rax again.