diff options
author | Tom Stellard <tstellar@gmail.com> | 2010-12-07 23:26:52 -0800 |
---|---|---|
committer | Tom Stellard <tstellar@gmail.com> | 2010-12-07 23:26:52 -0800 |
commit | 107f4e5aa5def40ad42db49c0f5b46a7d64700a0 (patch) | |
tree | aafbee377e918137faa3abbee1ebfa054057c2a5 /instruction.cpp |
Initial commit
Diffstat (limited to 'instruction.cpp')
-rw-r--r-- | instruction.cpp | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/instruction.cpp b/instruction.cpp new file mode 100644 index 0000000..bd754d7 --- /dev/null +++ b/instruction.cpp @@ -0,0 +1,22 @@ + +#include "instruction.h" + +instruction::instruction( + const char * name, + evaluator * evaluator, + std::vector<reg::address> dst) : + m_name(name), + m_evaluator(evaluator), + m_dst(dst) + { } + + +add_instruction::add_instruction( + std::vector<reg::address> dst, + std::vector<reg::address> src0, + std::vector<reg::address> src1) + : + instruction("ADD", new evaluator(), dst), + m_src0(src0), + m_src1(src1) + { } |