summaryrefslogtreecommitdiffhomepage
path: root/asm/intel64/trivials.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'asm/intel64/trivials.cpp')
-rw-r--r--asm/intel64/trivials.cpp19
1 files changed, 19 insertions, 0 deletions
diff --git a/asm/intel64/trivials.cpp b/asm/intel64/trivials.cpp
new file mode 100644
index 0000000..dd89ecd
--- /dev/null
+++ b/asm/intel64/trivials.cpp
@@ -0,0 +1,19 @@
+#include "trivials.h"
+
+#include <asm/assembler.h>
+
+namespace {
+
+bool registered {
+ registerOp("nop", [](Asm::Args& args) -> std::shared_ptr<Op>{
+ return std::make_shared<Op_nop>();
+ }) &&
+ registerOp("ret", [](Asm::Args& args) -> std::shared_ptr<Op>{
+ return std::make_shared<Op_ret>();
+ }) &&
+ registerOp("syscall", [](Asm::Args& args) -> std::shared_ptr<Op>{
+ return std::make_shared<Op_syscall>();
+ })
+};
+
+}