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:
@@ -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 = {
|
||||||
|
Reference in New Issue
Block a user