.386
.MODEL flat
OPTION CASEMAP:N
.CODE
PUBLIC _int2fp
_int2fp PROC
; Cuerpo del pro
push ebp
mov ebp,esp
push eax
push ebx
push ecx
push edx
xor eax,eax
xor ebx,ebx
xor ecx,ecx
xor edx,edx
mov ecx, [ ebp
mov eax, [ ebp
cmp eax,0
je Cero
cmp eax,0
jge Bucle
mov dh,1
neg eax
Bucle: cmp eax
je Fb
shrd ebx,eax,1
shr eax,1
add dl,1
jmp Bucle
Cero: mov eax,
jmp Fin
Fb:add dl,127
xor eax,eax
mov ax,dx
shld eax,ebx,
Fin:mov [ ecx]
pop edx
pop ecx
pop ebx
pop eax
pop ebp
ret
_int2fp ENDP
END
lunes, 17 de noviembre de 2008
Suscribirse a:
Enviar comentarios (Atom)

No hay comentarios:
Publicar un comentario