parameters: (debugger, command_line, result, dict)
docstring: Convert the integer to print its two's complement representation.
      args[0] (mandatory) is the integer to be converted
      args[1] (mandatory) is the bit width of the two's complement representation
      args[2] (optional) if specified, turns on verbose printing
docstring_summary: Convert the integer to print its two's complement representation.
      args[0] (mandatory) is the integer to be converted
      args[1] (mandatory) is the bit width of the two's complement representation
      args[2] (optional) if specified, turns on verbose printing
docstring_tokens: Convert the integer to print its two s complement representation . args [ 0 ] ( mandatory ) is the integer to be converted args [ 1 ] ( mandatory ) is the bit width of the two s complement representation args [ 2 ] ( optional ) if specified turns on verbose printing
function: def itob(debugger, command_line, result, dict):
      """Convert the integer to print its two's complement representation.
      args[0] (mandatory) is the integer to be converted
      args[1] (mandatory) is the bit width of the two's complement representation
      args[2] (optional) if specified, turns on verbose printing"""
      args = command_line.split()
      try:
          n = int(args[0], 0)
          width = int(args[1], 0)
          if width < 0:
              width = 0
      except:
          print itob.__doc__
          return
  
      if len(args) > 2:
          verbose = True
      else:
          verbose = False
  
      bits = twos_complement(n, width)
      if not bits:
          print "insufficient width value: %d" % width
          return
      if verbose and width > 0:
          pos = positions(width)
          print ' ' + ' '.join(pos)
      print ' %s' % str(bits)
function_tokens: def itob ( debugger , command_line , result , dict ) : args = command_line . split ( ) try : n = int ( args [ 0 ] , 0 ) width = int ( args [ 1 ] , 0 ) if width < 0 : width = 0 except : print itob . __doc__ return if len ( args ) > 2 : verbose = True else : verbose = False bits = twos_complement ( n , width ) if not bits : print "insufficient width value: %d" % width return if verbose and width > 0 : pos = positions ( width ) print ' ' + ' ' . join ( pos ) print ' %s' % str ( bits )