resolve_rip_relative
Calculate the absolute memory address from a RIP-relative instruction in GTA V by providing the instruction address, displacement offset, and instruction size.
Instructions
Resolve a RIP-relative address from an instruction.
Many GTA patterns use RIP-relative addressing. This reads the displacement at offset_position and computes the absolute address.
Formula: absolute = instruction_address + instruction_size + displacement
Args: address: Address of the instruction (hex) offset_position: Byte offset where the 4-byte displacement starts instruction_size: Total instruction length
Returns: The resolved absolute address
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| address | Yes | ||
| offset_position | Yes | ||
| instruction_size | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |