/OpCodes.cs
C# | 46 lines | 43 code | 3 blank | 0 comment | 0 complexity | 81e40511055d25cf78965b8d91114646 MD5 | raw file
- using System;
- using System.Collections.Generic;
- using System.Linq;
- using System.Text;
- namespace Compiler_
- {
- enum OPCODES
- {
- OP_PUSH, //1
- OP_POP, //2
- OP_ADD, //3
- OP_AND,
- OP_SUBTRACT, //4
- OP_ADDI, //5
- OP_SUBI, //6
- OP_JMP, //7
- OP_JTRUE, //8
- OP_JFALSE, //9
- OP_CALL, //10
- OP_RETURN, //11
- OP_MULT,
- OP_FNEG,
- OP_NOT,
- OP_OR,
- OP_MOD,
- OP_DIV,
- OP_CVRREALTOINT,
- OP_CVRINTTOREAL,
- OP_ASSIGN,
- OP_ARRAYASSIGN,
- OP_GET,
- OP_NOTEQ, //Relational
- OP_EQ,
- OP_LTEQ,
- OP_GTEQ,
- OP_LT,
- OP_GT,
- OP_ABS, //End Relational
- OP_WRITE,
- OP_WRITELN,
- OP_HALT
- }
-
- }