def parse_OCT(self, context, operands):
     op = Octal(operands[0])
     if op.isValid():
         context.currentRecord.code = [op.value]
         context.currentRecord.operandType = RecordType.CONST
         context.currentRecord.complete = True
     else:
         context.syntax("operand must be an octal number")
Exemple #2
0
 def parse_OCT(self, context, operands):
     op = Octal(operands[0])
     if op.isValid():
         context.currentRecord.code = [ op.value ]
         context.currentRecord.operandType = RecordType.CONST
         context.currentRecord.complete = True
     else:
         context.syntax("operand must be an octal number")
 def parse_DNCHAN(self, context, operands):
     op = Octal(" ".join(operands))
     if op.isValid():
         context.currentRecord.code = [034000 + op.value]
         context.currentRecord.operandType = RecordType.CONST
         context.currentRecord.complete = True
     else:
         context.syntax("operand must be an octal number")
Exemple #4
0
 def parse_DNCHAN(self, context, operands):
     op = Octal(" ".join(operands))
     if op.isValid():
         context.currentRecord.code = [ 034000 + op.value ]
         context.currentRecord.operandType = RecordType.CONST
         context.currentRecord.complete = True
     else:
         context.syntax("operand must be an octal number")