diff options
author | Roland Reichwein <mail@reichwein.it> | 2020-11-10 20:05:04 +0100 |
---|---|---|
committer | Roland Reichwein <mail@reichwein.it> | 2020-11-10 20:05:04 +0100 |
commit | 32e19781c554c83643fcab4c4f39a6a552c367f5 (patch) | |
tree | 09f42ab252ef5c2204163c46b9d3a65548a19f8a /asm/intel64/dec.h | |
parent | 8f2e3e7af0360cca7f8918ae41cc573f8cd88d7f (diff) |
Implemented dec, mul, imul
Diffstat (limited to 'asm/intel64/dec.h')
-rw-r--r-- | asm/intel64/dec.h | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/asm/intel64/dec.h b/asm/intel64/dec.h new file mode 100644 index 0000000..293ba8d --- /dev/null +++ b/asm/intel64/dec.h @@ -0,0 +1,31 @@ +// Decrement Register + +#pragma once + +#include <asm/assembler.h> + +class Op_dec: public Op +{ +public: + Op_dec(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; +}; + |