(self, args)
return self._values.new_integer().from_int(inp)
INP: get value from machine port.
INP: get value from machine port.
INP : get value from machine port .
def inp_(self, args):
        """INP: get value from machine port."""
        num, = args
        port = values.to_int(num, unsigned=True)
        inp = self.inp(port)
        # return as unsigned int
        if inp < 0:
            inp += 0x10000
        return self._values.new_integer().from_int(inp)
def inp_ ( self , args ) : num , = args port = values . to_int ( num , unsigned = True ) inp = self . inp ( port ) # return as unsigned int if inp < 0 : inp += 0x10000 return self . _values . new_integer ( ) . from_int ( inp )