mirror of
https://github.com/catseye/SixtyPical.git
synced 2024-11-25 07:32:16 +00:00
Make tests pass.
This commit is contained in:
parent
76ec7224cd
commit
01e3ab00aa
@ -420,6 +420,8 @@ class Analyzer(object):
|
|||||||
self.analyze_for(instr, context)
|
self.analyze_for(instr, context)
|
||||||
elif isinstance(instr, WithInterruptsOff):
|
elif isinstance(instr, WithInterruptsOff):
|
||||||
self.analyze_block(instr.block, context)
|
self.analyze_block(instr.block, context)
|
||||||
|
if context.encountered_gotos():
|
||||||
|
raise IllegalJumpError(instr, instr)
|
||||||
elif isinstance(instr, Save):
|
elif isinstance(instr, Save):
|
||||||
self.analyze_save(instr, context)
|
self.analyze_save(instr, context)
|
||||||
else:
|
else:
|
||||||
@ -776,7 +778,8 @@ class Analyzer(object):
|
|||||||
|
|
||||||
baton = context.extract(location)
|
baton = context.extract(location)
|
||||||
self.analyze_block(instr.block, context)
|
self.analyze_block(instr.block, context)
|
||||||
# TODO assert no goto was encountered
|
if context.encountered_gotos():
|
||||||
|
raise IllegalJumpError(instr, instr)
|
||||||
context.re_introduce(baton)
|
context.re_introduce(baton)
|
||||||
|
|
||||||
if location == REG_A:
|
if location == REG_A:
|
||||||
|
Loading…
Reference in New Issue
Block a user