From 98afb15eaa8f8c31bf5763de0e3c83a845414b0a Mon Sep 17 00:00:00 2001 From: comex Date: Sat, 24 Jan 2015 21:59:37 -0500 Subject: ... --- lib/dis.h | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'lib/dis.h') diff --git a/lib/dis.h b/lib/dis.h index 675cf17..216578c 100644 --- a/lib/dis.h +++ b/lib/dis.h @@ -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; +} + -- cgit v1.2.3