Exemplo n.º 1
0
 def __init__(self, methodName, mnemonic, opcode, numOperands=1, increment=False, interpType=InterpretiveType.NORMAL, switchcode=None):
     Opcode.__init__(self, methodName, mnemonic, opcode, None, False, None, 1)
     self.numOperands = numOperands
     self.switchcode = switchcode
     self.type = RecordType.INTERP
     self.interpType = interpType
     self.interpArgType = None
     self.complement = True          # Default is to complement the generated code.
     self.increment = increment
Exemplo n.º 2
0
 def __init__(self,
              methodName,
              opcode,
              operandType=OperandType.NONE,
              addressType=None,
              numwords=1,
              optional=False):
     Opcode.__init__(self, methodName, methodName, opcode, operandType,
                     optional, addressType, numwords)
     self.type = RecordType.EXEC
Exemplo n.º 3
0
 def __init__(self,
              methodName,
              mnemonic=None,
              operandType=RecordType.NONE,
              operandOptional=False,
              numwords=0):
     Opcode.__init__(self, methodName, mnemonic, None, operandType,
                     operandOptional, None, numwords)
     if numwords == 0:
         self.type = RecordType.ASMCONST
     else:
         self.type = RecordType.CONST
Exemplo n.º 4
0
 def __init__(self, methodName, mnemonic=None, operandType=RecordType.NONE, operandOptional=False, numwords=0):
     Opcode.__init__(self, methodName, mnemonic, None, operandType, operandOptional, None, numwords)
     if numwords == 0:
         self.type = RecordType.ASMCONST
     else:
         self.type = RecordType.CONST
Exemplo n.º 5
0
 def __init__(self, methodName, opcode, operandType=OperandType.NONE, addressType=None, numwords=1, optional=False):
     Opcode.__init__(self, methodName, methodName, opcode, operandType, optional, addressType, numwords)
     self.type = RecordType.EXEC