diff --git a/Decompiling-Tips.md b/Decompiling-Tips.md index a6fb536..08e4eeb 100644 --- a/Decompiling-Tips.md +++ b/Decompiling-Tips.md @@ -159,7 +159,7 @@ This stores in edx the beginning of data from a ride instance. The ride instance [sv6]: https://github.com/IntelOrca/OpenRCT2/wiki/SV6-Ride-Structure -#### offset +#### Offset If you see an instruction that looks like this: @@ -175,6 +175,12 @@ ebx = ebx + RCT2_ADDRESS_SPRITE_LIST where `RCT2_ADDRESS_SPRITE_LIST` is a value like `0x123456`. In the binary, `ebx` could be any register, and `offset` can refer to any address in the code. +This will eventually end up like the following once we have the offset properly mapped to a C arrary + +```c +ebx = RCT2_ADDRESS_SPRITE_LIST[ebx]; +``` + ### IDA Tips - Use the spacebar to shuffle between the graphical layout and the line-by-line instructions.