Example #1
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")
Example #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")
Example #3
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")
Example #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")