1
0
mirror of https://github.com/catseye/SixtyPical.git synced 2025-02-08 10:30:55 +00:00

Fix compiler. All tests pass once again.

This commit is contained in:
Chris Pressey 2015-10-20 12:53:07 +01:00
parent b4e0756d7e
commit f16cb75677

View File

@ -193,7 +193,7 @@ class Compiler(object):
else:
raise UnsupportedOpcodeError(instr)
elif opcode == 'call':
label = self.labels[instr.name]
label = self.labels[instr.location.name]
self.emitter.emit(JSR(Absolute(label)))
elif opcode == 'if':
cls = {