diff options
author | Roland Reichwein <mail@reichwein.it> | 2020-11-18 18:10:42 +0100 |
---|---|---|
committer | Roland Reichwein <mail@reichwein.it> | 2020-11-18 18:10:42 +0100 |
commit | 1937e301b6cd185c8ce907b9184142e82e76fda4 (patch) | |
tree | ea950d00019d4a3583fd8451fb3dc336347d4473 /asm/intel64/or.h | |
parent | 031bfef600e7021c8bd72e2e663f368e7386b131 (diff) |
Implemented asm or
Diffstat (limited to 'asm/intel64/or.h')
-rw-r--r-- | asm/intel64/or.h | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/asm/intel64/or.h b/asm/intel64/or.h new file mode 100644 index 0000000..3362634 --- /dev/null +++ b/asm/intel64/or.h @@ -0,0 +1,31 @@ +// OR + +#pragma once + +#include <asm/assembler.h> + +class Op_or: public Op +{ +public: + Op_or(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; +}; + |