diff options
author | Roland Reichwein <mail@reichwein.it> | 2020-11-18 17:55:27 +0100 |
---|---|---|
committer | Roland Reichwein <mail@reichwein.it> | 2020-11-18 17:55:27 +0100 |
commit | 031bfef600e7021c8bd72e2e663f368e7386b131 (patch) | |
tree | 4e724c3b13278e5c6fb90a9380d19dc1d253b4b3 /asm/intel64/sar.h | |
parent | 927eb99e75325164a541c2638e1e607294019381 (diff) |
Added Asm ops
Diffstat (limited to 'asm/intel64/sar.h')
-rw-r--r-- | asm/intel64/sar.h | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/asm/intel64/sar.h b/asm/intel64/sar.h new file mode 100644 index 0000000..531532d --- /dev/null +++ b/asm/intel64/sar.h @@ -0,0 +1,31 @@ +// Shift Arithmetic Right + +#pragma once + +#include <asm/assembler.h> + +class Op_sar: public Op +{ +public: + Op_sar(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; +}; + |