about summary refs log tree commit diff
path: root/src/include/instructionhandler.hpp
diff options
context:
space:
mode:
authorYour Name <you@example.com>2020-07-20 02:54:22 +0200
committerYour Name <you@example.com>2020-07-20 02:54:22 +0200
commitc69f053c29faa47d0600f5b147835e970d9cf654 (patch)
treed97af2f279114c72c3db81ffb489c316fb3f6dd6 /src/include/instructionhandler.hpp
downloadAARM64-Disassembler-c69f053c29faa47d0600f5b147835e970d9cf654.tar.gz
AARM64-Disassembler-c69f053c29faa47d0600f5b147835e970d9cf654.tar.bz2
AARM64-Disassembler-c69f053c29faa47d0600f5b147835e970d9cf654.zip
Initial Commit HEAD master
Half-added some basic AARM64 instructions such as ADD, RET, MOV, NOP...
Diffstat (limited to 'src/include/instructionhandler.hpp')
-rw-r--r--src/include/instructionhandler.hpp14
1 files changed, 14 insertions, 0 deletions
diff --git a/src/include/instructionhandler.hpp b/src/include/instructionhandler.hpp
new file mode 100644
index 0000000..c61d3e2
--- /dev/null
+++ b/src/include/instructionhandler.hpp
@@ -0,0 +1,14 @@
+#pragma once
+
+#include <tuple>
+#include "instructions.hpp"
+
+class InstructionHanlder
+{
+public:
+    static InstructionType getInstruction(Instruction* instr);
+    static std::string getInstructionString(Instruction* instr);
+private:
+    static std::tuple<std::string, std::string, InstructionType> getTpl(Instruction* instr);
+    static std::tuple<std::string, std::string, InstructionType> array[6];
+};