diff options
author | Roland Reichwein <mail@reichwein.it> | 2020-11-28 12:08:10 +0100 |
---|---|---|
committer | Roland Reichwein <mail@reichwein.it> | 2020-11-28 12:08:10 +0100 |
commit | 108569319d85a1832700f70ae6c93d7e926dfa92 (patch) | |
tree | 497d1db278ca65c65afaf03ec8c3a93f8f1a3a09 /asm/intel64/setcc.h | |
parent | f82ed28acbbbf10a243e44dcbc4ddeebc0dde446 (diff) |
Implemented SETcc - Set Byte On Condition
Diffstat (limited to 'asm/intel64/setcc.h')
-rw-r--r-- | asm/intel64/setcc.h | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/asm/intel64/setcc.h b/asm/intel64/setcc.h new file mode 100644 index 0000000..1bd0d3f --- /dev/null +++ b/asm/intel64/setcc.h @@ -0,0 +1,31 @@ +// SETcc - Set Byte On Condition + +#pragma once + +#include <asm/assembler.h> + +class Op_setcc: public Op +{ +public: + Op_setcc(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; +}; + |