Jul 7, 2008 at 2:53 PM
Join Date: Dec 30, 2005
Location: Germany
Posts: 3218
Age: 33
Pronouns: No homie
~ Sticky ~
mov edx,[ebp+0008]
mov eax,[edx+0074]
cmp eax,0x00
je A
cmp eax,0x01
je B
cmp eax,0x02
je C
jmp D
A mov edx,[ebp+0008]
mov ecx,[ebp-0030]
mov [edx+0054],ecx
mov ecx,[ebp-002C]
mov [edx+0058],ecx
mov ecx,[ebp-0028]
mov [edx+005C],ecx
mov ecx,[ebp-0024]
mov [edx+0060],ecx
add eax,0x01
mov [edx+0074],eax
xor eax,eax
mov [edx+0014],0xFFFFFD00
jmp D
B mov ecx,[edx+0014]
add ecx,0x10
mov [edx+0014],ecx
mov ebx,[edx+0078]
cmp ebx,0xFF
jne D
xor ebx,ebx
add eax,0x01
mov [edx+0074],eax
mov [edx+0014],0x00000300
jmp D
C mov ecx,[edx+0014]
sub ecx,0x10
mov [edx+0014],ecx
mov ebx,[edx+0078]
cmp ebx,0xFF
jne D
xor ebx,ebx
sub eax,0x01
mov [edx+0074],eax
mov [edx+0014],0xFFFFFD00
jmp D
D mov ebx,[edx+0078]
add ebx,0x01
mov [edx+0078],ebx
mov edx,[ebp+0008]
mov ecx,[edx+000C]
mov ebx,[edx+0014]
add ecx,ebx
mov [edx+000C],ecx
mov edx,[ebp+0008]
mov ecx,[edx+0068]
shl ecx,0x04
lea eax,[ebp+ecx-60]
RuneLancer said:For instance, you clear ebx a few times for no reason.
RuneLancer said:Or you jump to D when it's exactly 1 instruction away.
RuneLancer said:Also, don't use ebx.
mov edx,[ebp+0008]
mov eax,[edx+0074]
cmp eax,0x00
je A
cmp eax,0x01
je B
cmp eax,0x02
je C
jmp D
A mov edx,[ebp+0008]
mov ecx,[ebp-0030]
mov [edx+0054],ecx
mov ecx,[ebp-002C]
mov [edx+0058],ecx
mov ecx,[ebp-0028]
mov [edx+005C],ecx
mov ecx,[ebp-0024]
mov [edx+0060],ecx
inc eax
mov [edx+0074],eax
xor eax,eax
mov [edx+0014],0xFFFFFD00
jmp D
B mov ecx,[edx+0014]
add ecx,0x10
mov [edx+0014],ecx
cmp ecx,0x00000000
jne D
inc eax
mov [edx+0074],eax
mov [edx+0014],0x00000300
jmp D
C mov ecx,[edx+0014]
sub ecx,0x10
mov [edx+0014],ecx
cmp ecx,0x00000000
jne D
sub eax,0x01
mov [edx+0074],eax
mov [edx+0014],0xFFFFFD00
D mov edx,[ebp+0008]
mov ecx,[edx+000C]
mov eax,[edx+0014]
add ecx,eax
mov [edx+000C],ecx
xor eax,eax
mov edx,[ebp+0008]
mov ecx,[edx+0068]
shl ecx,0x04
lea eax,[ebp+ecx-60]
D mov ebx,[edx+0078]
add ebx,0x01
mov [edx+0078],ebx
Sure you can. Data is data, whatever it's used for.S. P. Gardebiter said:Anyway, you can't clear it.
mov edx,[ebp+0008]
mov eax,[edx+0078]
xor eax,eax
mov [edx+0078],eax
Post some code and we'll see what went wrong...S. P. Gardebiter said:I inserted the clearing later. But it still didn't work.
42B42C 8B 45 08 mov eax,[ebp+0008]
42B42F C7 40 78 00 00 00 00 mov [eax+0078],00000000
RuneLancer said:Post some code and we'll see what went wrong...
mov edx,[ebp+0008]
mov eax,[edx+0074]
cmp eax,0x00
je A
cmp eax,0x01
je B
cmp eax,0x02
je C
jmp D
A mov edx,[ebp+0008]
mov ecx,[ebp-0030]
mov [edx+0054],ecx
mov ecx,[ebp-002C]
mov [edx+0058],ecx
mov ecx,[ebp-0028]
mov [edx+005C],ecx
mov ecx,[ebp-0024]
mov [edx+0060],ecx
add eax,0x01
mov [edx+0074],eax
xor eax,eax
mov [edx+0014],0xFFFFFD00
jmp D
B mov ecx,[edx+0014]
add ecx,0x10
mov [edx+0014],ecx
mov ebx,[edx+0078]
cmp ebx,0xFF
jne D
xor ebx,ebx
mov [edx+0078],ebx
add eax,0x01
mov [edx+0074],eax
mov [edx+0014],0x00000300
jmp D
C mov ecx,[edx+0014]
sub ecx,0x10
mov [edx+0014],ecx
mov ebx,[edx+0078]
cmp ebx,0xFF
jne D
xor ebx,ebx
mov [edx+0078],ebx
sub eax,0x01
mov [edx+0074],eax
mov [edx+0014],0xFFFFFD00
jmp D
D mov ebx,[edx+0078]
add ebx,0x01
mov [edx+0078],ebx
mov edx,[ebp+0008]
mov ecx,[edx+000C]
mov ebx,[edx+0014]
add ecx,ebx
mov [edx+000C],ecx
mov edx,[ebp+0008]
mov ecx,[edx+0068]
shl ecx,0x04
lea eax,[ebp+ecx-60]