mirror of
https://github.com/Ed94/raddebugger.git
synced 2026-09-24 02:00:05 +00:00
generalize machine ops
This commit is contained in:
@@ -678,6 +678,29 @@ union Guid
|
||||
};
|
||||
StaticAssert(sizeof(Guid) == 16, g_guid_size_check);
|
||||
|
||||
////////////////////////////////
|
||||
//~ Machine Ops
|
||||
|
||||
typedef enum MachineOpResult
|
||||
{
|
||||
MachineOpResult_Null,
|
||||
MachineOpResult_Ok,
|
||||
MachineOpResult_Fail,
|
||||
MachineOpResult_Maybe,
|
||||
} MachineOpResult;
|
||||
|
||||
#define MACHINE_OP_REG_READ(name) MachineOpResult name(U64 reg_id, void *buffer, U64 buffer_max, void *ud)
|
||||
typedef MACHINE_OP_REG_READ(MachineOp_RegRead);
|
||||
|
||||
#define MACHINE_OP_REG_WRITE(name) MachineOpResult name(U64 reg_id, void *value, U64 value_size, void *ud)
|
||||
typedef MACHINE_OP_REG_WRITE(MachineOp_RegWrite);
|
||||
|
||||
#define MACHINE_OP_MEM_READ(name) MachineOpResult name(U64 addr, void *buffer, U64 buffer_size, void *ud)
|
||||
typedef MACHINE_OP_MEM_READ(MachineOp_MemRead);
|
||||
|
||||
#define MACHINE_OP_MEM_WRITE(name) MachineOpResult name(U64 addr, void *value, U64 value_size, void *ud)
|
||||
typedef MACHINE_OP_MEM_WRITE(MachineOp_MemWrite);
|
||||
|
||||
////////////////////////////////
|
||||
//~ rjf: Basic Constants
|
||||
|
||||
|
||||
Reference in New Issue
Block a user