diff options
author | Roland Reichwein <mail@reichwein.it> | 2020-11-27 22:51:50 +0100 |
---|---|---|
committer | Roland Reichwein <mail@reichwein.it> | 2020-11-27 22:51:50 +0100 |
commit | 541a2dffdcb02063f71d21af22aebbd293c9e49f (patch) | |
tree | bf061c9af91d814fc9888c26ef4c34c0b8fa87d8 /asm/intel64/cmp.h | |
parent | f9885f48fc968c4122f2ed231a7a48938cc7206c (diff) |
Added CMP
Diffstat (limited to 'asm/intel64/cmp.h')
-rw-r--r-- | asm/intel64/cmp.h | 31 |
1 files changed, 31 insertions, 0 deletions
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 <asm/assembler.h> + +class Op_cmp: public Op +{ +public: + Op_cmp(const Asm::Args& args); + +public: + std::vector<uint8_t> 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<uint8_t> machine_code; +}; + |