Skip to content

Latest commit

 

History

History

0x06

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 

0x06

[dec] [home] [inc]

[See this riddle on the book]

not      rax
inc      rax
neg      rax
See explanation

nop

This snippet is equivalent to.. doing nothing.

not flips all the bits, which is equivalent to doing the one's complement of a number.

inc increments by one.

not does the two's complement.

In practice a two's complement is equivalent to a one's complement + 1, so the last operation neutralizes the first two.

[dec] [home] [inc]