diff options
author | Roland Reichwein <mail@reichwein.it> | 2020-11-28 11:53:02 +0100 |
---|---|---|
committer | Roland Reichwein <mail@reichwein.it> | 2020-11-28 11:53:02 +0100 |
commit | f82ed28acbbbf10a243e44dcbc4ddeebc0dde446 (patch) | |
tree | 3c6cd46022b1e10eb6f2727e800a5ccd1f5ee69c /asm/intel64/cmovcc.h | |
parent | 541a2dffdcb02063f71d21af22aebbd293c9e49f (diff) |
Implemented CMOVcc - Conditional Move
Diffstat (limited to 'asm/intel64/cmovcc.h')
-rw-r--r-- | asm/intel64/cmovcc.h | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/asm/intel64/cmovcc.h b/asm/intel64/cmovcc.h new file mode 100644 index 0000000..b11c1b5 --- /dev/null +++ b/asm/intel64/cmovcc.h @@ -0,0 +1,31 @@ +// CMOVcc - Conditional Move + +#pragma once + +#include <asm/assembler.h> + +class Op_cmovcc: public Op +{ +public: + Op_cmovcc(const std::string& name, const Asm::Args& args, const OP_T& opcode); + +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; +}; + |