comparison pytouhou/vm/anmrunner.py @ 238:0e1762b1ab9f

Fix ANM interrupts
author Thibaut Girka <thib@sitedethib.com>
date Sun, 01 Jan 2012 20:23:00 +0100
parents 741860192b56
children 901489c21d19
comparison
equal deleted inserted replaced
237:cbe9dbd80dfb 238:0e1762b1ab9f
49 if new_ip is None: 49 if new_ip is None:
50 return False 50 return False
51 else: 51 else:
52 self.instruction_pointer = new_ip 52 self.instruction_pointer = new_ip
53 self.frame, opcode, args = self.script[self.instruction_pointer] 53 self.frame, opcode, args = self.script[self.instruction_pointer]
54 self.waiting = False
54 return True 55 return True
55 56
56 57
57 def run_frame(self): 58 def run_frame(self):
58 if not self._running: 59 if not self._running: