comparison pytouhou/formats/ecl.py @ 46:25ca15f714ad

Add/fix a few opcodes
author Thibaut Girka <thib@sitedethib.com>
date Mon, 22 Aug 2011 10:49:49 +0200
parents 7195aaf95f6e
children 811cefefb5c8
comparison
equal deleted inserted replaced
45:e01e88b06a13 46:25ca15f714ad
7 class ECL(object): 7 class ECL(object):
8 _instructions = {0: ('', 'noop?'), 8 _instructions = {0: ('', 'noop?'),
9 1: ('I', 'delete?'), 9 1: ('I', 'delete?'),
10 2: ('Ii', 'relative_jump'), 10 2: ('Ii', 'relative_jump'),
11 3: ('Iii', 'relative_jump_ex'), 11 3: ('Iii', 'relative_jump_ex'),
12 4: ('ii', 'set_counter'), 12 4: ('ii', 'set_int'),
13 5: ('if', None), 13 5: ('if', 'set_float'),
14 6: ('ii', None), 14 6: ('ii', 'set_random_int'),
15 8: ('if', None), 15 8: ('if', 'set_random_float'),
16 9: ('iff', None), 16 9: ('iff', None),
17 10: ('i', None), 17 10: ('i', None),
18 13: ('iii', None), 18 13: ('iii', None),
19 14: ('iii', None), 19 14: ('iii', None),
20 15: ('iii', None), 20 15: ('iii', None),
21 16: ('iii', None), 21 16: ('iii', None),
22 17: ('iii', None), 22 17: ('iii', None),
23 18: ('i', None), 23 18: ('i', None),
24 20: ('iff', None), 24 20: ('iff', 'add'),
25 21: ('iff', None), 25 21: ('iff', 'sub'),
26 23: ('iff', None), 26 23: ('iff', None),
27 25: ('iffff', None), 27 25: ('iffff', None),
28 26: ('i', None), 28 26: ('i', None),
29 27: ('ii', None), 29 27: ('ii', 'compare_ints'),
30 28: ('ff', None), 30 28: ('ff', None),
31 29: ('ii', None), 31 29: ('ii', None),
32 30: ('ii', None), 32 30: ('ii', None),
33 31: ('ii', None), 33 31: ('ii', 'relative_jump_if_equal'),
34 32: ('ii', None), 34 32: ('ii', None),
35 33: ('ii', None), 35 33: ('ii', None),
36 34: ('ii', None), 36 34: ('ii', None),
37 35: ('iif', None), 37 35: ('iif', 'call'),
38 36: ('', 'return?'), 38 36: ('', 'return?'),
39 39: ('iiiii', None), 39 39: ('iifii', 'call_if_equal'),
40 43: ('fff', 'set_position'), 40 43: ('fff', 'set_position'),
41 45: ('ff', 'set_angle_and_speed'), 41 45: ('ff', 'set_angle_and_speed'),
42 46: ('f', 'set_rotation_speed'), 42 46: ('f', 'set_rotation_speed'),
43 47: ('f', 'set_speed'), 43 47: ('f', 'set_speed'),
44 48: ('f', 'set_acceleration'), 44 48: ('f', 'set_acceleration'),
46 50: ('ff', None), 46 50: ('ff', None),
47 51: ('ff', 'set_speed_towards_player'), 47 51: ('ff', 'set_speed_towards_player'),
48 52: ('iff', None), 48 52: ('iff', None),
49 56: ('iffi', None), 49 56: ('iffi', None),
50 57: ('ifff', 'move_to'), 50 57: ('ifff', 'move_to'),
51 59: ('iffi', None), 51 59: ('iffi', 'move_to2'),
52 61: ('i', None), 52 61: ('i', 'stop_in'),
53 63: ('i', None), 53 63: ('i', None),
54 65: ('ffff', None), 54 65: ('ffff', None),
55 66: ('', None), 55 66: ('', None),
56 67: ('hhiiffffi', 'set_bullet_attributes'), 56 67: ('hhiiffffi', 'set_bullet_attributes'),
57 68: ('hhiiffffi', 'set_bullet_attributes2'), 57 68: ('hhiiffffi', 'set_bullet_attributes2'),
58 69: ('hhiiffffi', 'set_bullet_attributes3'), 58 69: ('hhiiffffi', 'set_bullet_attributes3'),
59 70: ('hhiiffffi', 'set_bullet_attributes4'), 59 70: ('hhiiffffi', 'set_bullet_attributes4'),
60 74: ('hhiiffffi', 'set_bullet_attributes5'), 60 71: ('hhiiffffi', 'set_bullet_attributes5'),
61 75: ('hhiiffffi', 'set_bullet_attributes6'), 61 74: ('hhiiffffi', 'set_bullet_attributes6'),
62 75: ('hhiiffffi', 'set_bullet_attributes7'),
62 76: ('i', None), 63 76: ('i', None),
63 77: ('i', 'set_bullet_interval'), 64 77: ('i', 'set_bullet_interval'),
64 78: ('', None), 65 78: ('', 'delay_attack'),
65 79: ('', None), 66 79: ('', 'no_delay_attack'),
66 81: ('fff', 'set_bullet_launch_offset'), 67 81: ('fff', 'set_bullet_launch_offset'),
67 82: ('iiiiffff', None), 68 82: ('iiiiffff', None),
68 83: ('', None), 69 83: ('', None),
69 84: ('i', None), 70 84: ('i', None),
70 85: ('hhfiffffiiiiii', None), 71 85: ('hhffffffiiiiii', 'laser'),
71 86: ('hhffifffiiiiii', None), 72 86: ('hhffffffiiiiii', 'laser2'),
72 87: ('i', None), 73 87: ('i', 'set_upcoming_id'),
73 88: ('if', None), 74 88: ('if','alter_laser_angle'),
74 90: ('iiii', None), 75 90: ('iiii', None),
75 92: ('i', None), 76 92: ('i', None),
76 #93: set_spellcard, a string is there 77 #93: set_spellcard, a string is there
77 94: ('', None), 78 94: ('', None),
78 95: ('ifffhhi', None), 79 95: ('ifffhhi', None),
79 96: ('', None), 80 96: ('', None),
80 97: ('i', 'set_anim'), 81 97: ('i', 'set_anim'),
81 98: ('hhhhhh', 'set_multiple_anims'), 82 98: ('hhhhhxx', 'set_multiple_anims'),
82 99: ('ii', None), 83 99: ('ii', None),
83 100: ('i', 'set_death_anim'), 84 100: ('i', 'set_death_anim'),
84 101: ('i', 'set_boss_mode?'), 85 101: ('i', 'set_boss_mode?'),
85 102: ('iffff', None), 86 102: ('iffff', None),
86 103: ('fff', 'set_enemy_hitbox'), 87 103: ('fff', 'set_enemy_hitbox'),
87 104: ('i', None), 88 104: ('i', None),
88 105: ('i', 'set_vulnerable'), 89 105: ('i', 'set_vulnerable'),
89 106: ('i', 'play_sound'), 90 106: ('i', 'play_sound'),
90 107: ('i', None), 91 107: ('i', None),
91 108: ('i', 'set_death_callback?'), 92 108: ('i', 'set_death_callback?'),
92 109: ('ii', None), 93 109: ('ii', 'memory_write_int'),
93 111: ('i', None), 94 111: ('i', 'set_life'),
94 112: ('i', None), 95 112: ('i', None),
95 113: ('i', 'set_low_life_trigger'), 96 113: ('i', 'set_low_life_trigger'),
96 114: ('i', 'set_low_life_callback'), 97 114: ('i', 'set_low_life_callback'),
97 115: ('i', 'set_timeout'), 98 115: ('i', 'set_timeout'),
98 116: ('i', None), 99 116: ('i', None),
99 117: ('i', None), 100 117: ('i', None),
100 118: ('iihh', None), 101 118: ('iihh', None),
101 119: ('i', None), 102 119: ('i', 'drop_bonus'),
102 120: ('i', None), 103 120: ('i', None),
103 121: ('ii', None), 104 121: ('ii', None),
104 122: ('i', None), 105 122: ('i', None),
105 123: ('i', None), 106 123: ('i', None),
106 124: ('i', None), 107 124: ('i', None),