diff options
author | Roland Reichwein <mail@reichwein.it> | 2020-10-18 16:59:54 +0200 |
---|---|---|
committer | Roland Reichwein <mail@reichwein.it> | 2020-10-18 16:59:54 +0200 |
commit | 8a2d1dc5c8b6639985d26d1c915048d87d52426b (patch) | |
tree | 2f3957a1c24ef35b4ec9259a6a0d97393b248a57 /asm/intel64/mov.h | |
parent | 8f28495ab9a8ebf53868405541e907394895e51f (diff) |
Added xor, mov, jmp
Diffstat (limited to 'asm/intel64/mov.h')
-rw-r--r-- | asm/intel64/mov.h | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/asm/intel64/mov.h b/asm/intel64/mov.h new file mode 100644 index 0000000..e1b2304 --- /dev/null +++ b/asm/intel64/mov.h @@ -0,0 +1,31 @@ +// Memory Move + +#pragma once + +#include <asm/assembler.h> + +class Op_mov: public Op +{ +public: + Op_mov(AsmArgs& 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; +}; + |