home *** CD-ROM | disk | FTP | other *** search
- {Opcodes constants}
- unit OpCodes;
- {Opcodes constants}
- interface
- type TOpCode=integer;
- {Positive numbers are reserved for procedure }
- { calls use negative for OpCodes }
- const
- { Arithmetic operations }
- ocAdd =-1;
- ocSub =-2;
- ocMul =-3;
- ocDiv =-4;
- ocNegate =-5;
- { Boolean operations }
- ocAnd =-11;
- ocOr =-12;
- ocNot =-13;
- {Comparison ops}
- ocEqu =-14;
- ocNE =-15;
- ocG =-16;
- ocL =-17;
- ocLE =-18;
- ocGE =-19;
- {Value operations }
- ocGet =-21;
- ocSet =-22;
- ocExec =-23;
- ocEval =-24;
- ocGetElem=-25;
- ocRoot =-26;
- {Constant operations }
- ocStr =-31;
- ocFloat =-32;
- ocInt =-33;
- ocBool =-34;
- {Execution flow operations }
- ocNop =-40;
- ocHalt =-41;
- ocJZ =-42;
- ocJNZ =-43;
- ocJMP =-44;
- {Jump if top of Return stack is Zero}
- ocJRZ =-45;
- {DeCRement top of return stack}
- ocDcrR =-46;
- {Moves value to return stack}
- ocToR =-47;
- {Moves value from return stack to data stack}
- ocFromR =-48;
- {Drops value from reaturn stack}
- ocRDrop =-49;
- implementation
-
- end.
-