PageRenderTime 52ms CodeModel.GetById 25ms RepoModel.GetById 0ms app.codeStats 0ms

/OpCodes.cs

https://bitbucket.org/cvillamor/compiler
C# | 46 lines | 43 code | 3 blank | 0 comment | 0 complexity | 81e40511055d25cf78965b8d91114646 MD5 | raw file
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Text;
  5. namespace Compiler_
  6. {
  7. enum OPCODES
  8. {
  9. OP_PUSH, //1
  10. OP_POP, //2
  11. OP_ADD, //3
  12. OP_AND,
  13. OP_SUBTRACT, //4
  14. OP_ADDI, //5
  15. OP_SUBI, //6
  16. OP_JMP, //7
  17. OP_JTRUE, //8
  18. OP_JFALSE, //9
  19. OP_CALL, //10
  20. OP_RETURN, //11
  21. OP_MULT,
  22. OP_FNEG,
  23. OP_NOT,
  24. OP_OR,
  25. OP_MOD,
  26. OP_DIV,
  27. OP_CVRREALTOINT,
  28. OP_CVRINTTOREAL,
  29. OP_ASSIGN,
  30. OP_ARRAYASSIGN,
  31. OP_GET,
  32. OP_NOTEQ, //Relational
  33. OP_EQ,
  34. OP_LTEQ,
  35. OP_GTEQ,
  36. OP_LT,
  37. OP_GT,
  38. OP_ABS, //End Relational
  39. OP_WRITE,
  40. OP_WRITELN,
  41. OP_HALT
  42. }
  43. }