Add function to retrieve an offset from an opcode

This commit is contained in:
2025-09-10 21:57:36 +02:00
parent 7c0344e1b1
commit 6300facedc
2 changed files with 22 additions and 0 deletions

View File

@@ -13,6 +13,14 @@ Memory::WriteInstructions(allocMemory, INSTRUCTIONS, sizeof INSTRUCTIONS, ADDRES
class Memory
{
public:
/**
* Get offset from opcode.
*
* @param opcode : The address where the offset begins.
*/
static uint8_t* GetOffsetFromOpcode(uint8_t* opcode);
/**
* Converts flkoat 32 bits into a char*.
*