mirror of
https://github.com/Ed94/raddebugger.git
synced 2026-10-14 04:49:41 -07:00
generalize machine ops
This commit is contained in:
1 parent
782f87e512
commit
952afd49a7
7 files changed
+89
-119
No files matched your search
@@ -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