comparison pytouhou/vm/eclrunner.py @ 194:efa847ee8b3c

Fix ECL function calls
author Thibaut Girka <thib@sitedethib.com>
date Fri, 28 Oct 2011 23:07:45 +0200
parents 9f58e2a6e950
children 52c0b9399413
comparison
equal deleted inserted replaced
193:9f58e2a6e950 194:efa847ee8b3c
447 self.variables, self.comparison_reg)) 447 self.variables, self.comparison_reg))
448 self.sub = sub 448 self.sub = sub
449 self.frame = 0 449 self.frame = 0
450 self.instruction_pointer = 0 450 self.instruction_pointer = 0
451 self.variables[0] = param1 451 self.variables[0] = param1
452 self.variables[1] = param2 452 self.variables[4] = param2
453 453
454 454
455 @instruction(36) 455 @instruction(36)
456 def ret(self): 456 def ret(self):
457 self.sub, self.frame, self.instruction_pointer, self.variables, self.comparison_reg = self.stack.pop() 457 self.sub, self.frame, self.instruction_pointer, self.variables, self.comparison_reg = self.stack.pop()