instruction.cpp 501 B

12345678910111213141516171819202122232425262728293031
  1. #include "instruction.h"
  2. #include <utility>
  3. using namespace std;
  4. Instruction::Instruction()
  5. : command(DIE)
  6. , params(N)
  7. , a(0)
  8. , b(0)
  9. , c(0)
  10. {
  11. }
  12. Instruction::Instruction(const Instruction& inst)
  13. : command(inst.command)
  14. , params(inst.params)
  15. , a(inst.a)
  16. , b(inst.b)
  17. , c(inst.c)
  18. {
  19. }
  20. Instruction::Instruction(Command command, Params params, Parameter a, Parameter b, Parameter c)
  21. : command(command)
  22. , params(params)
  23. , a(a)
  24. , b(b)
  25. , c(c)
  26. {
  27. }