Statistics

Members: 1927
News: 293
Web Links: 1
Visitors: 3962336

Who's Online

Damn Vulnerable LinuxDamn Vulnerable Linux (DVL) is a Linux-based (modified Damn Small Linux) tool for IT-Security & IT-Anti- Security and Attack & Defense. [CLICK HERE FOR MORE INFOS! ]

Featured Conference Video

T16-Recon2006-Joe_Stewart-OllyBonE.gif OllyBone - Semi-Automatic Unpacking on IA-32. View the conference video here!
Home arrow Submit Your Paper!
Min
User Rating: / 0
PoorBest 
Written by Chris Dragan   


;Summary:       eax = min (eax, ecx) (both eax and ecx unsigned)
;Compatibility: 386+
;Notes:     8 bytes, 4 clocks (P5), destroys ecx and edx
    sub    ecx, eax    ; ecx = n2 - n1
    sbb    edx, edx    ; edx = (n1 > n2) ? -1 : 0
    and    ecx, edx    ; ecx = (n1 > n2) ? (n2 - n1) : 0
    add    eax, ecx    ; eax += (n1 > n2) ? (n2 - n1) : 0
; Standard cmp/jbe/mov takes 2-8 clocks on P5 and 1-17 on P6