comparison pytouhou/vm/eclrunner.py @ 195:52c0b9399413

Fix ECL function calls... again
author Thibaut Girka <thib@sitedethib.com>
date Sat, 29 Oct 2011 11:42:22 +0200
parents efa847ee8b3c
children 709f42eaa55e
comparison
equal deleted inserted replaced
194:efa847ee8b3c 195:52c0b9399413
442 442
443 443
444 @instruction(35) 444 @instruction(35)
445 def call(self, sub, param1, param2): 445 def call(self, sub, param1, param2):
446 self.stack.append((self.sub, self.frame, self.instruction_pointer, 446 self.stack.append((self.sub, self.frame, self.instruction_pointer,
447 self.variables, self.comparison_reg)) 447 list(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[4] = param2 452 self.variables[4] = param2