This repository was archived by the owner on Jan 28, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathopcodes.py
More file actions
126 lines (125 loc) · 2.35 KB
/
opcodes.py
File metadata and controls
126 lines (125 loc) · 2.35 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
opcodes = {
0x1: "end_script",
0x2: "end_evt",
0x3: "lbl",
0x4: "goto",
0x5: "do",
0x6: "while",
0x7: "do_break",
0x8: "do_continue",
0x9: "wait_frm",
0xa: "wait_msec",
0xb: "halt",
0xc: "if_str_equal",
0xd: "if_str_not_equal",
0xe: "if_str_small",
0xf: "if_str_large",
0x10: "if_str_small_equal",
0x11: "if_str_large_equal",
0x12: "iff_equal",
0x13: "iff_not_equal",
0x14: "iff_small",
0x15: "iff_large",
0x16: "iff_small_equal",
0x17: "iff_large_equal",
0x18: "if_equal",
0x19: "if_not_equal",
0x1a: "if_small",
0x1b: "if_large",
0x1c: "if_small_equal",
0x1d: "if_large_equal",
0x1e: "if_flag",
0x1f: "if_not_flag",
0x20: "else",
0x21: "end_if",
0x22: "switch",
0x23: "switchi",
0x24: "case_equal",
0x25: "case_not_equal",
0x26: "case_small",
0x27: "case_large",
0x28: "case_small_equal",
0x29: "case_large_equal",
0x2a: "case_etc",
0x2b: "case_or",
0x2c: "case_and",
0x2d: "case_flag",
0x2e: "case_end",
0x2f: "case_between",
0x30: "switch_break",
0x31: "end_switch",
0x32: "set",
0x33: "seti",
0x34: "setf",
0x35: "add",
0x36: "sub",
0x37: "mul",
0x38: "div",
0x39: "mod",
0x3a: "addf",
0x3b: "subf",
0x3c: "mulf",
0x3d: "divf",
0x3e: "set_read",
0x3f: "read",
0x40: "read2",
0x41: "read3",
0x42: "read4",
0x43: "read_n",
0x44: "set_readf",
0x45: "readf",
0x46: "readf2",
0x47: "readf3",
0x48: "readf4",
0x49: "readf_n",
0x4a: "clamp_int",
0x4b: "set_user_wrk",
0x4c: "set_user_flg",
0x4d: "alloc_user_wrk",
0x4e: "and",
0x4f: "andi",
0x50: "or",
0x51: "ori",
0x52: "set_frame_from_msec",
0x53: "set_mesc_from_frame",
0x54: "set_ram",
0x55: "set_ramf",
0x56: "get_ram",
0x57: "get_ramf",
0x58: "setr",
0x59: "setrf",
0x5a: "getr",
0x5b: "getrf",
0x5c: "user_func",
0x5d: "run_evt",
0x5e: "run_evt_id",
0x5f: "run_child_evt",
0x60: "delete_evt",
0x61: "restart_evt",
0x62: "set_pri",
0x63: "set_spd",
0x64: "set_type",
0x65: "stop_all",
0x66: "start_all",
0x67: "stop_other",
0x68: "start_other",
0x69: "stop_id",
0x6a: "start_id",
0x6b: "chk_evt",
0x6c: "inline_evt",
0x6d: "inline_evt_id",
0x6e: "end_inline",
0x6f: "brother_evt",
0x70: "brother_evt_id",
0x71: "end_brother",
0x72: "debug_put_msg",
0x73: "debug_msg_clear",
0x74: "debug_put_reg",
0x75: "debug_name",
0x76: "debug_rem",
0x77: "debug_bp"
}
opcodesR = {}
for opc in opcodes:
name = opcodes[opc]
opcodesR[name] = opc