diff --git a/Memory/Memory.hpp b/Memory/Memory.hpp index db20ef4..801aab7 100644 --- a/Memory/Memory.hpp +++ b/Memory/Memory.hpp @@ -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*. *