1
0
mirror of https://github.com/catseye/SixtyPical.git synced 2025-08-10 06:24:56 +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: else:
raise UnsupportedOpcodeError(instr) raise UnsupportedOpcodeError(instr)
elif opcode == 'call': elif opcode == 'call':
label = self.labels[instr.name] label = self.labels[instr.location.name]
self.emitter.emit(JSR(Absolute(label))) self.emitter.emit(JSR(Absolute(label)))
elif opcode == 'if': elif opcode == 'if':
cls = { cls = {