diff options
author | Roland Reichwein <mail@reichwein.it> | 2020-11-13 09:34:45 +0100 |
---|---|---|
committer | Roland Reichwein <mail@reichwein.it> | 2020-11-13 09:34:45 +0100 |
commit | 387af55e498970975d77291374e2f5be12a040bd (patch) | |
tree | 8731c285c5476420363f6760f6814728c38d1866 /asm/intel64/sub.h | |
parent | bbf81cd21bbe36fe7e613e5411b9d366d8411921 (diff) |
Added intel sub, div, idiv
Diffstat (limited to 'asm/intel64/sub.h')
-rw-r--r-- | asm/intel64/sub.h | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/asm/intel64/sub.h b/asm/intel64/sub.h new file mode 100644 index 0000000..cc0dd81 --- /dev/null +++ b/asm/intel64/sub.h @@ -0,0 +1,31 @@ +// Integer Subtraction + +#pragma once + +#include <asm/assembler.h> + +class Op_sub: public Op +{ +public: + Op_sub(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; +}; + |