Help for this page

Select Code to Download


  1. or download this
    ; abs(eax), with no branches.
    ; intel syntax (dest, src)
    ...
    mov ebx, eax   ; save copy of eax
    neg eax
    cmovl eax, ebx ; if eax is now negative, restore its saved value