Mercurial > touhou
diff pytouhou/formats/ecl.py @ 63:8527fe640844
Implement simple arithmetic instructions.
author | Emmanuel Gil Peyrot <linkmauve@linkmauve.fr> |
---|---|
date | Wed, 24 Aug 2011 17:14:05 -0700 |
parents | 4fe37a620b22 |
children | d469012368b3 |
line wrap: on
line diff
--- a/pytouhou/formats/ecl.py +++ b/pytouhou/formats/ecl.py @@ -31,25 +31,25 @@ class ECL(object): 8: ('if', 'set_random_float'), 9: ('iff', 'set_random_float2'), 10: ('i', None), - 13: ('iii', None), - 14: ('iii', None), - 15: ('iii', None), - 16: ('iii', None), - 17: ('iii', None), + 13: ('iii', 'set_random_int2'), + 14: ('iii', 'substract_int'), + 15: ('iii', 'multiply_int'), + 16: ('iii', 'divide_int'), + 17: ('iii', 'modulo'), 18: ('i', None), - 20: ('iff', 'add'), - 21: ('iff', 'sub'), - 23: ('iff', None), + 20: ('iff', 'add_float'), + 21: ('iff', 'substract_float'), + 23: ('iff', 'divide_float'), 25: ('iffff', None), 26: ('i', None), 27: ('ii', 'compare_ints'), - 28: ('ff', None), - 29: ('ii', None), - 30: ('ii', None), + 28: ('ff', 'compare_floats'), + 29: ('ii', 'relative_jump?'), + 30: ('ii', 'relative_jump?'), 31: ('ii', 'relative_jump_if_equal'), - 32: ('ii', None), - 33: ('ii', None), - 34: ('ii', None), + 32: ('ii', 'relative_jump?'), + 33: ('ii', 'relative_jump?'), + 34: ('ii', 'relative_jump?'), 35: ('iif', 'call'), 36: ('', 'return?'), 39: ('iifii', 'call_if_equal'),