git @ Cat's Eye Technologies SixtyPical / d70092c
Even more general. Chris Pressey 4 years ago
1 changed file(s) with 4 addition(s) and 3 deletion(s). Raw diff Collapse all Expand all
114114 for node in program.all_children():
115115 if isinstance(node, SingleOp):
116116 instr = node
117 if isinstance(instr.location, ForwardReference):
118 instr.location = self.lookup(instr.location.name)
117119 if isinstance(instr.src, ForwardReference):
118120 instr.src = self.lookup(instr.src.name)
119 if instr.opcode in ('call', 'goto'):
120 if isinstance(instr.location, ForwardReference):
121 instr.location = self.lookup(instr.location.name)
121 if isinstance(instr.dest, ForwardReference):
122 instr.dest = self.lookup(instr.dest.name)
122123
123124 return program
124125