]> git.localhorst.tv Git - l2e.git/blob - src/common/Script.h
93bc53105dd3a4de050e802f66d23a6bb8a4971c
[l2e.git] / src / common / Script.h
1 /*
2  * Script.h
3  *
4  *  Created on: Oct 13, 2012
5  *      Author: holy
6  */
7
8 #ifndef COMMON_SCRIPT_H_
9 #define COMMON_SCRIPT_H_
10
11 namespace common {
12
13 class Script {
14
15 public:
16         Script();
17         ~Script();
18
19         enum Code {
20                 CODE_MOVE_A0,
21                 CODE_MOVE_A1,
22                 CODE_MOVE_I0,
23                 CODE_MOVE_I1,
24                 CODE_MOVE_V0,
25                 CODE_MOVE_V1,
26
27                 CODE_ADD_I0,
28                 CODE_ADD_I1,
29                 CODE_ADD_V0,
30                 CODE_ADD_V1,
31
32                 CODE_RAND_I0,
33                 CODE_RAND_I1,
34
35                 CODE_SYSCALL,
36         };
37
38 public:
39         const unsigned char *text;
40         int textlen;
41
42 };
43
44 }
45
46 #endif /* COMMON_SCRIPT_H_ */