Add function to get memory address from opcode
This commit is contained in:
@@ -87,6 +87,15 @@ class Memory
|
|||||||
*/
|
*/
|
||||||
static uint8_t* GetOffsetFromOpcode(uint8_t* opcode, int extraOffset = 0);
|
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*.
|
* Converts flkoat 32 bits into a char*.
|
||||||
*
|
*
|
||||||
|
|||||||
Reference in New Issue
Block a user