From 031bfef600e7021c8bd72e2e663f368e7386b131 Mon Sep 17 00:00:00 2001 From: Roland Reichwein Date: Wed, 18 Nov 2020 17:55:27 +0100 Subject: Added Asm ops --- asm/intel64/bsf.h | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 asm/intel64/bsf.h (limited to 'asm/intel64/bsf.h') diff --git a/asm/intel64/bsf.h b/asm/intel64/bsf.h new file mode 100644 index 0000000..699c093 --- /dev/null +++ b/asm/intel64/bsf.h @@ -0,0 +1,31 @@ +// Bit Scan Forward + +#pragma once + +#include + +class Op_bsf: public Op +{ +public: + Op_bsf(const Asm::Args& args); + +public: + std::vector getCode() override + { + return machine_code; + } + + size_t size() override + { + return machine_code.size(); + } + + bool optimize() override ///< returns true if changed + { + return false; + } + +protected: + std::vector machine_code; +}; + -- cgit v1.2.3