home *** CD-ROM | disk | FTP | other *** search
- include asm.inc
-
- public select_min_count
-
- .code
-
- ;; select min count
- ;
- ; entry CX count1
- ; DX AX count2
- ; exit CX minimum of count1 and count2
- ;
- select_min_count proc
- or dx,dx
- jnz smc1 ; if count2 > 64k
- cmp ax,cx
- ja smc1 ; if count2 > count1
- mov cx,ax
- smc1: ret
- select_min_count endp
-
- end
-