From 6ab3715ee2622e293f7c4924511f31347b327e6e Mon Sep 17 00:00:00 2001 From: Roland Reichwein Date: Mon, 9 Nov 2020 10:35:00 +0100 Subject: Implement inc instruction, support 64 bit regs --- asm/intel64/inc.h | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 asm/intel64/inc.h (limited to 'asm/intel64/inc.h') diff --git a/asm/intel64/inc.h b/asm/intel64/inc.h new file mode 100644 index 0000000..0887392 --- /dev/null +++ b/asm/intel64/inc.h @@ -0,0 +1,31 @@ +// Increment Register + +#pragma once + +#include + +class Op_inc: public Op +{ +public: + Op_inc(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