home *** CD-ROM | disk | FTP | other *** search
- .MODEL SMALL
- .STACK 200h
-
- .DATA
- Valor DW 0356
- Raiz DB ?
-
- .CODE
- ProcRaiz PROC
- mov bx,Valor
- xor cx,cx
- @bucle:
- inc cl
- mov ax,cx
- mul cl
- cmp ax,bx
- jle @bucle
- dec cl
- mov Raiz,cl
- ret
- ProcRaiz ENDP
-
- Codigo PROC
- mov ax,@DATA
- mov ds,ax
-
- CALL ProcRaiz
-
- mov al,Raiz
- add ax,30h
- xor dx,dx
- mov dl,al
- xor ax,ax
-
- mov ah,02h
- int 21h
-
- mov ah,4Ch
- int 21h
- Codigo ENDP
- END Codigo
-
-
-
-