Statistics

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

Who's Online

We have 1 guest 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 About/Disclaimer
NumFactors
User Rating: / 0
PoorBest 
Written by Troy Benoist   


;Summary: Routine to determine the number of factors for a 16-bit value
;Compatibility: All DOS versions/8088+ instructions
;Notes: 22 BYTES               Input: AX = Value to check for number of factors
;       * If CX is 2, check value in AX is prime.
    mov bx,1        ;Test=1 (Test is the testing value of each theoretical
                    ;factor of AX, from 1-AX).
    xor cx,cx       ;Count=0 (Count is running total with # of factors for AX).
ChkFctr:
    xor dx,dx