Add function to get memory address from opcode

This commit is contained in:
2026-01-10 10:43:19 +01:00
parent e16cafa942
commit 378c49989c

View File

@@ -87,6 +87,15 @@ class Memory
*/
static uint8_t* GetOffsetFromOpcode(uint8_t* opcode, int extraOffset = 0);
/**
* Get Address from opcode.
*
* @param opcode : The opcode pointer targeted.
* @param dispOffset : The offset to target disp (4 bytes) in opcode.
* @param instructionLen : The total opcode length in bytes.
*/
static uint8_t* GetAddressFromOpcode(uint8_t* opcode, uint32_t dispOffset, uint32_t instructionLen);
/**
* Converts flkoat 32 bits into a char*.
*