PDA

View Full Version : Hacking and Hex?



EagleMark
03-01-2012, 08:40 PM
Trying to understand what I see and why. If you've been reading the other thread you'll know why...

So lets take for instance BPW in $42 XDF has a location of "0x2B4" When I open the hex editor in TunerPro I can scroll down and find 0x2B0 then a row of numbers. So you would figure that 4 would be the fourth set of hex. But when you make a change to BPW at 0x2B4 it changes the fifth hex?

http://www.gearhead-efi.com/Fuel-Injection/attachment.php?attachmentid=1798&stc=1&d=1330623377


May as well add a TunerPro tip here too. If you open all your scalers, bitmasks and tables in Parameter tree, then open hex editor and click on a hex digit it will highlight the parameter. See highlighted BPW in parameter tree!

historystamp
03-01-2012, 08:59 PM
But when you make a change to BPW at 0x2B4 it changes the fifth hex?

because the number on the left is 0th address.
1802











Anyway, the 2B0 refers to hex 80.

Human start counting at 1. Computers start counting at 0.

It's gets confusing. A lot of computer bugs have resulting from this confusing. It has a name: Boundary condition.

It's the same thing in Excel. Lets say your in cell a10 and you want to move down to cell a14. See where you land if you count down 4 from a10. Count carefully. No cheating.

1803



































If you start counting at a10 with a one you end up at a13.
Robert

EagleMark
03-01-2012, 09:39 PM
:mad1:

I knew that! Yet I still started counting from 1... like a darn human.

For others there's a good explination on hex at TunerPro.
http://tunerpro.net/tutorials/UnderstandingHex.htm

Thanks Robert! :thumbsup:

I passed your test, but I knew better then to count 10 as one of the adders...