From f86999e137f43372236f2dccd1fe3572a85c0dcd Mon Sep 17 00:00:00 2001 From: Roland Reichwein Date: Sat, 17 Oct 2020 14:16:46 +0200 Subject: Separate-out assembler --- asm/intel64/nop.cpp | 11 +++++++++++ asm/intel64/nop.h | 11 +++++++++++ 2 files changed, 22 insertions(+) create mode 100644 asm/intel64/nop.cpp create mode 100644 asm/intel64/nop.h (limited to 'asm/intel64') 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 + +namespace { + +bool registered { registerOp("nop", [](AsmArgs& args) -> std::shared_ptr{ + return std::make_shared(); + }) }; + +} 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 + +class Op_nop: public OpSimple +{ +public: + Op_nop() : OpSimple({ 0x90 }) {} + +}; + -- cgit v1.2.3