Posted: Sun Aug 14, 2016 7:03 am Post subject: How to use the esi?
ok so dumb question but I was making a infinite health script for the player only and need to do a compare so what I found is when looking at what accesses the addresses (mine and opponents) there is the same instruction and when I press on "More information" I saw that for me "ESI=00000002" and for my opponent "ESI=00000003" (as you can see in the photo).
but in which way am I meant to implement the esi? As:
Code:
cmp esi,2
je HP
jmp KO
or:
Code:
cmp [esi],2
je HP
jmp KO
why I am asking this is because I tried both ways and the "cmp esi" works but after a few hits of my opponent I get KOd and I don't understand why because I looked at the "More Information" window for a bunch of different opponents and its still "ESI=00000003".
If its not possible to use the 2 and 3 then please tell me what do the registers mean?
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum You cannot attach files in this forum You can download files in this forum