diff options
author | Roland Reichwein <mail@reichwein.it> | 2020-11-28 12:38:49 +0100 |
---|---|---|
committer | Roland Reichwein <mail@reichwein.it> | 2020-11-28 12:38:49 +0100 |
commit | a632cce380a853f5400111e19e1380982ed8a7fd (patch) | |
tree | 4ac1276ae528cb1395cbe4e31346799af1c4dabf /asm/intel64/movsx.h | |
parent | 108569319d85a1832700f70ae6c93d7e926dfa92 (diff) |
Implemented MOVSX - Move With Sign-Extension
Diffstat (limited to 'asm/intel64/movsx.h')
-rw-r--r-- | asm/intel64/movsx.h | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/asm/intel64/movsx.h b/asm/intel64/movsx.h new file mode 100644 index 0000000..a31f538 --- /dev/null +++ b/asm/intel64/movsx.h @@ -0,0 +1,31 @@ +// Move With Sign-Extension + +#pragma once + +#include <asm/assembler.h> + +class Op_movsx: public Op +{ +public: + Op_movsx(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; +}; + |