Lines Matching refs:assembly
211 del self.assembly
213 def fromAssembly(self, assembly): argument
214 self.assembly = assembly
226 return self.assembly
230 assembly = self.getAssembly()
234 nInstr = len(assembly)
236 instr = assembly[i]
250 line.append(assembly[i+j])
265 del self.assembly
271 assembly = self.assembly
272 if isinstance(assembly, type([])):
273 assembly = ' '.join(assembly)
276 lenAssembly = len(assembly)
277 pos = _skipWhite(assembly, 0)
279 m = _tokenRE.match(assembly, pos)
281 raise tt_instructions_error("Syntax error in TT program (%s)" % assembly[pos-5:pos+15])
303 pos = _skipWhite(assembly, pos)
305 m = _tokenRE.match(assembly, pos)
307 raise tt_instructions_error("Syntax error in TT program (%s)" % assembly[pos:pos+15])
312 pos = _skipWhite(assembly, pos)
386 pos = _skipWhite(assembly, pos)
393 assembly = []
437 assembly.append("%s[ ]" % mnemonic)
439 assembly.append("%s[ ] /* %s values pushed */" % (mnemonic, nValues))
440 assembly.extend(values)
442 assembly.append("INSTR%d[ ]" % op)
446 assembly.append(mnemonic + "[%s]" % num2binary(op - argoffset, argBits))
448 assembly.append(mnemonic + "[ ]")
450 self.assembly = assembly