From 541a2dffdcb02063f71d21af22aebbd293c9e49f Mon Sep 17 00:00:00 2001 From: Roland Reichwein Date: Fri, 27 Nov 2020 22:51:50 +0100 Subject: Added CMP --- asm/intel64/cmp.h | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 asm/intel64/cmp.h (limited to 'asm/intel64/cmp.h') diff --git a/asm/intel64/cmp.h b/asm/intel64/cmp.h new file mode 100644 index 0000000..7cad008 --- /dev/null +++ b/asm/intel64/cmp.h @@ -0,0 +1,31 @@ +// Compare Two Operands + +#pragma once + +#include + +class Op_cmp: public Op +{ +public: + Op_cmp(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