Posted: Tue May 08, 2012 8:25 am Post subject: Pointer - base address + address + offset
Ok I have a problem with adding address and offset on a base address..
This is what I get in CE... And as I have red, base address of the games is frequently 0x400000, and I got that programatically in code... "game.dat" has the base address of 0x400000.
Code:
http://s14.postimage.org/3w9z60gu9/ce_Ex1.jpg
so here is another picture where you can see that it is correct base address as the CE calculates the exact same address after adding the offset..
Code:
http://s8.postimage.org/ml8u4avo5/ce_Ex2.jpg
So, when I try to add those hex numbers I get both in calculator and programatically: 0x400000+0x063A8D4 = A3A8D4 + F8 = A3A9CC which is nowhere near the 009E6968 value which is the correct value I need..
My question is what is the correct algorithm for adding those hex values and getting the same value what CE gets..
Thank you DB! That worked like a charm... A bit confusing as memory library which i'm using returns byte[] in reversed order but that's not the problem.. Thanks again
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