From 2b64ff2407c27cf4f8b73bea0dfe2b39bdfc0f84 Mon Sep 17 00:00:00 2001 From: Duncan Date: Mon, 19 May 2014 04:55:55 -0700 Subject: [PATCH] Updated Decompiling Tips (markdown) --- Decompiling-Tips.md | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) 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.