OSDN Git Service

wwww
[proj16/16.git] / 16 / v2 / source / verge / VCC / CODE.H
1 /*\r
2 Copyright (C) 1998 BJ Eirich (aka vecna)\r
3 This program is free software; you can redistribute it and/or\r
4 modify it under the terms of the GNU General Public License\r
5 as published by the Free Software Foundation; either version 2\r
6 of the License, or (at your option) any later version.\r
7 This program is distributed in the hope that it will be useful,\r
8 but WITHOUT ANY WARRANTY; without even the implied warranty of\r
9 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.\r
10 See the GNU General Public Lic\r
11 See the GNU General Public License for more details.\r
12 You should have received a copy of the GNU General Public License\r
13 along with this program; if not, write to the Free Software\r
14 Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.\r
15 */\r
16 \r
17 #if !defined(__CODE_INC)\r
18 #define __CODE_INC\r
19 \r
20 // Single-byte opcode descriptors\r
21 \r
22 #define EXEC 1\r
23 #define VAR0_ASSIGN 2\r
24 #define VAR1_ASSIGN 3\r
25 #define VAR2_ASSIGN 4\r
26 #define GENERAL_IF 5\r
27 #define ELSE 6\r
28 #define GOTO 7\r
29 #define FOR_LOOP0 8\r
30 #define FOR_LOOP1 9\r
31 #define SWITCH 10\r
32 #define CASE 11\r
33 #define ENDSCRIPT 255\r
34 \r
35 // Single-byte operand descriptors\r
36 \r
37 #define OP_IMMEDIATE 1\r
38 #define OP_VAR0 2\r
39 #define OP_VAR1 3\r
40 #define OP_VAR2 4\r
41 #define OP_GROUP 5\r
42 \r
43 // Single-byte IF handler parameters\r
44 \r
45 #define ZERO 0\r
46 #define NONZERO 1\r
47 #define EQUALTO 2\r
48 #define NOTEQUAL 3\r
49 #define GREATERTHAN 4\r
50 #define GREATERTHANOREQUAL 5\r
51 #define LESSTHAN 6\r
52 #define LESSTHANOREQUAL 7\r
53 \r
54 // Single byte assignment descriptors\r
55 \r
56 #define SET 1\r
57 #define INCREMENT 2\r
58 #define DECREMENT 3\r
59 #define INCSET 4\r
60 #define DECSET 5\r
61 \r
62 // Operand combination descriptors\r
63 #define ADD 1\r
64 #define SUB 2\r
65 #define MULT 3\r
66 #define DIV 4\r
67 #define MOD 5\r
68 #define OP_END 255\r
69 \r
70 #endif // __CODE_INC\r