Skip to content

Latest commit

 

History

History
24 lines (11 loc) · 251 Bytes

File metadata and controls

24 lines (11 loc) · 251 Bytes

Question 40

By using exactly two instructions (first one is neg), take an absolute value of an integer stored in rax.

Answer

label:
neg rax
jl label
; here rax holds its absolute value

prev +++ next