Ensamblador - kompilar

 
Vista:

kompilar

Publicado por Quake (1 intervención) el 28/08/2004 04:34:04
Como puedo kompilar este codigo con el masm32

mov edi,offset Login
mov esi,offset Password
xor eax,eax
xor ebx,ebx
xor ecx,ecx
mov ebx,offset longitud
mov ebx,dword ptr [ebx]
mov al,byte ptr[edi+ebx-1]
mov cl,byte ptr[edi]
xor ebx,ebx
add eax,ecx
mov ecx,10
xor edx,edx
div ecx
add dl,32h
mov byte ptr[esi],dl
inc esi

Goto: xor eax,eax
xor ecx,ecx
mov al,byte ptr[edi+ebx]
mov cl,byte ptr[edi+ebx+1]
cmp cl,00h
jne Next
mov edx,offset longitud
mov edx,dword ptr [edx]
add ebx,1
cmp ebx,3
jl Bad
cmp edx,ebx
je Exit
jmp Bad
Exit: mov byte ptr[esi+ebx+1],00h
ret
Bad: mov eax,1
ret
Next: add eax,ecx
mov ecx,0Ah
xor edx,edx
div ecx
add dl,30h
mov byte ptr[esi+ebx],dl
inc ebx
jmp Goto
Valora esta pregunta
Me gusta: Está pregunta es útil y esta claraNo me gusta: Está pregunta no esta clara o no es útil
0
Responder

RE:kompilar

Publicado por Liebesschmerz (25 intervenciones) el 30/08/2004 23:05:38
pues pones eso dentro de .code
y luego pones las demas cosas que faltan como:

.386
.model flat, stdcall
/incluyes libs y incs
.code
start:

end start
Valora esta respuesta
Me gusta: Está respuesta es útil y esta claraNo me gusta: Está respuesta no esta clara o no es útil
0
Comentar