reiou:
mov edx,[CHAR]
cmp edx,0
je end
mov edx,[edx+BC]
cmp edx,0
je end
mov eax,[edx+C0] //begin
mov ebx,[edx+C4] //尾地址
sub ebx,eax
begin:
cmp ebx,0
jle end
mov edx,[eax]
mov esi,[edx+98]
cmp esi,#273 //obj类型
je zhenyin
cmp esi,#529 //obj类型
je zhenyin
jmp next
zhenyin:
mov edx,[eax]
mov esi,[edx+BlAp]
cmp esi,#100
je fujia
cmp esi,#120
je fujia
jmp next
fujia:
cmp edx,[CHAR]
jne renou
jmp next
renou:
mov [400400],edx
jmp next
//popad
//jmp ChEh_BEnd
next:
add eax,4
sub ebx,4
jmp begin
end:
ret
这个上面哪里有问题怎么只能便历一个怪物的地址,要哪里可以全部怪物
mov edx,[CHAR]
cmp edx,0
je end
mov edx,[edx+BC]
cmp edx,0
je end
mov eax,[edx+C0] //begin
mov ebx,[edx+C4] //尾地址
sub ebx,eax
begin:
cmp ebx,0
jle end
mov edx,[eax]
mov esi,[edx+98]
cmp esi,#273 //obj类型
je zhenyin
cmp esi,#529 //obj类型
je zhenyin
jmp next
zhenyin:
mov edx,[eax]
mov esi,[edx+BlAp]
cmp esi,#100
je fujia
cmp esi,#120
je fujia
jmp next
fujia:
cmp edx,[CHAR]
jne renou
jmp next
renou:
mov [400400],edx
jmp next
//popad
//jmp ChEh_BEnd
next:
add eax,4
sub ebx,4
jmp begin
end:
ret
这个上面哪里有问题怎么只能便历一个怪物的地址,要哪里可以全部怪物