Mercurial > touhou
comparison pytouhou/game/eclrunner.py @ 53:e72166f73e30
Oops
author | Thibaut Girka <thib@sitedethib.com> |
---|---|
date | Mon, 22 Aug 2011 23:20:17 +0200 |
parents | ab826bc29aa2 |
children | de358a7684c8 |
comparison
equal
deleted
inserted
replaced
52:ab826bc29aa2 | 53:e72166f73e30 |
---|---|
170 """ | 170 """ |
171 self.frame, self.instruction_pointer = frame, instruction_pointer | 171 self.frame, self.instruction_pointer = frame, instruction_pointer |
172 | 172 |
173 | 173 |
174 @instruction(3) | 174 @instruction(3) |
175 def relative_jump_ex(self, frame, instruction_pointer, value_id): | 175 def relative_jump_ex(self, frame, instruction_pointer, variable_id): |
176 """If the given variable is non-zero, decrease it by 1 and jump to a | 176 """If the given variable is non-zero, decrease it by 1 and jump to a |
177 relative offset in the same subroutine. | 177 relative offset in the same subroutine. |
178 | 178 |
179 Warning: the relative offset has been translated to an instruction pointer | 179 Warning: the relative offset has been translated to an instruction pointer |
180 by the ECL parsing code (see pytouhou.formats.ecl). | 180 by the ECL parsing code (see pytouhou.formats.ecl). |