summaryrefslogtreecommitdiffhomepage
path: root/asm/intel64
diff options
context:
space:
mode:
Diffstat (limited to 'asm/intel64')
-rw-r--r--asm/intel64/nop.cpp11
-rw-r--r--asm/intel64/nop.h11
2 files changed, 22 insertions, 0 deletions
diff --git a/asm/intel64/nop.cpp b/asm/intel64/nop.cpp
new file mode 100644
index 0000000..450de46
--- /dev/null
+++ b/asm/intel64/nop.cpp
@@ -0,0 +1,11 @@
+#include "nop.h"
+
+#include <asm/assembler.h>
+
+namespace {
+
+bool registered { registerOp("nop", [](AsmArgs& args) -> std::shared_ptr<Op>{
+ return std::make_shared<Op_nop>();
+ }) };
+
+}
diff --git a/asm/intel64/nop.h b/asm/intel64/nop.h
new file mode 100644
index 0000000..72d6d1b
--- /dev/null
+++ b/asm/intel64/nop.h
@@ -0,0 +1,11 @@
+#pragma once
+
+#include <asm/chunk.h>
+
+class Op_nop: public OpSimple
+{
+public:
+ Op_nop() : OpSimple({ 0x90 }) {}
+
+};
+