OSDN Git Service

CPU_RAMRW script 追加
[unagi/old-svn-converted.git] / client / trunk / script.h
1 #ifndef _SCRIPT_H_
2 #define _SCRIPT_H_
3 int ppu_ramtest(void);
4 void script_load(const char *inmode, const char *scriptfile, const char *targetfile, const int test_only);
5
6 struct st_variable{
7         int type;
8         char variable;
9         long value;
10 };
11
12 struct st_expression{
13         struct st_variable left, right;
14         int operator;
15 };
16
17 struct script{
18         int opcode;
19         long value[4];
20         struct st_expression expression;
21         char variable;
22 };
23
24 enum{
25         VALUE_EXPRESSION = 0x1000000,
26         VALUE_VARIABLE
27 };
28 enum{
29         EXPRESSION_TYPE_VARIABLE,
30         EXPRESSION_TYPE_VALUE
31 };
32 #endif