I recycle the old game using CE. I found code that modifies the HP unit, but I can’t find the base address, since the offset is negative.
![OPCODE: "mov [esi-282], ax" [1]](https://fooobar.com//img/708e6b40c7f4958eecabb20bbe707b35.png)
The thing is, I don’t even know how this works, it sounds silly to me, why does the / dev compiler do it anyway? Is this a temporary stack pointer? Is there any way to find it? (I'm sure there is a way) This is frustrating because I found the offsets as ID, HP and stuff, but the base ... I have no problem with this normally, the offsets are positive.
I thought the base would be something like [esi-STRUCTURE_SIZE]
and the last element would be[esi]
Or maybe I'm completely wrong.
Thanks:)