From 5b91d6d3362f97e465a49d7bc3a381bcbe8c5045 Mon Sep 17 00:00:00 2001 From: Jeffrey Pfau Date: Wed, 30 Oct 2013 23:22:38 -0700 Subject: [PATCH] Small framework for decompiler --- src/arm/decompiler.c | 6 ++++++ src/arm/decompiler.h | 12 ++++++++++++ 2 files changed, 18 insertions(+) create mode 100644 src/arm/decompiler.c create mode 100644 src/arm/decompiler.h diff --git a/src/arm/decompiler.c b/src/arm/decompiler.c new file mode 100644 index 000000000..3960aa16b --- /dev/null +++ b/src/arm/decompiler.c @@ -0,0 +1,6 @@ +#include "decompiler.h" + +void ARMDecodeThumb(uint16_t opcode, struct ThumbInstructionInfo* info) { + // TODO + info->opcode = opcode; +} diff --git a/src/arm/decompiler.h b/src/arm/decompiler.h new file mode 100644 index 000000000..59c47887b --- /dev/null +++ b/src/arm/decompiler.h @@ -0,0 +1,12 @@ +#ifndef ARM_DECOMPILER_H +#define ARM_DECOMPILER_H + +#include + +struct ThumbInstructionInfo { + uint16_t opcode; +}; + +void ARMDecodeThumb(uint16_t opcode, struct ThumbInstructionInfo* info); + +#endif