mirror of
https://github.com/OpenRCT2/OpenRCT2
synced 2026-01-25 15:54:31 +01:00
Updated Decompiling Tips (markdown)
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user