diff options
author | comex | 2015-01-24 21:59:37 -0500 |
---|---|---|
committer | comex | 2015-01-24 21:59:37 -0500 |
commit | 98afb15eaa8f8c31bf5763de0e3c83a845414b0a (patch) | |
tree | e603aae961ead4e596fc994ed06df884eaee7b9a /lib/dis.h | |
parent | Add function to deal with mprotecting RW and back. A bit more complex than t... (diff) | |
download | substitute-98afb15eaa8f8c31bf5763de0e3c83a845414b0a.tar.gz |
...
Diffstat (limited to 'lib/dis.h')
-rw-r--r-- | lib/dis.h | 6 |
1 files changed, 6 insertions, 0 deletions
@@ -110,3 +110,9 @@ static const unsigned null_op = -0x100; #ifndef TARGET_DIS_SUPPORTED #error "no disassembler for the target architecture yet" #endif + +static inline void op32(void **codep, uint32_t op) { + *(uint32_t *) *codep = op; + *codep += 4; +} + |