Lines Matching refs:mnemonic
13 # opcode mnemonic argBits descriptive name pops pushes eats from instruction stream pushes
27 # opcode mnemonic argBits descriptive name pops pushes pops pushes
164 for op, mnemonic, argBits, name, pops, pushes in instructionList:
165 assert _mnemonicPat.match(mnemonic)
166 mnemonicDict[mnemonic] = op, argBits
170 opcodeDict[op+i] = mnemonic, argBits, argoffset
172 opcodeDict[op] = mnemonic, 0, 0
282 dummy, mnemonic, arg, number, comment = m.groups()
288 if mnemonic.startswith("INSTR"):
290 op = int(mnemonic[5:])
292 elif mnemonic not in ("PUSH", "NPUSHB", "NPUSHW", "PUSHB", "PUSHW"):
293 op, argBits = mnemonicDict[mnemonic]
295 raise tt_instructions_error("Incorrect number of argument bits (%s[%s])" % (mnemonic, arg))
317 if mnemonic == "PUSH":
366 words = mnemonic[-1] == "W"
367 op, argBits = streamMnemonicDict[mnemonic]
368 if mnemonic[0] != "N":
400 mnemonic, argBits, argoffset = opcodeDict[op]
408 mnemonic, argBits, argoffset = streamOpcodeDict[op]
409 words = mnemonic[-1] == "W"
434 mnemonic = "PUSH"
437 assembly.append("%s[ ]" % mnemonic)
439 assembly.append("%s[ ] /* %s values pushed */" % (mnemonic, nValues))
446 assembly.append(mnemonic + "[%s]" % num2binary(op - argoffset, argBits))
448 assembly.append(mnemonic + "[ ]")