Search:

Type: Posts; User: Teropita

Search: Search took 0.01 seconds.

  1. Answer: Cos I am a dumbass, I didn't consider the...

    Answer: Cos I am a dumbass, I didn't consider the answer was in the strtol function.

    Thanks for your help I appreciate the point in the correct direction.

    For the archive opcodehi =...
  2. How to input a command line argument and treat it as its HEX value converted to Decim

    I want to enter a hex value at the command line eg 31 and then put the decimal value (49) into an Array.

    So if I use
    opcodehi = strtol(data[1],NULL,0);

    and on the command line I enter ...
  3. Replies
    2
    Views
    4,187

    Thank you quzah, changing to unsigned fixed...

    Thank you quzah,

    changing to unsigned fixed the leading FF problem.

    I'm very new to C programming, I didn't realise the leading FFs were related to the data type.

    I had %hX because when I...
  4. Replies
    2
    Views
    4,187

    How to format print for Hex like output

    Hi,

    I have this little bit of code to print out some numbers from a characer array, the code below prints out:
    FFAC 11 1 4F 48 45 FFAA F 0

    I would like to format this for printing as:
    AC 11...
  5. Thanks laserlight it was the two's complement...

    Thanks laserlight it was the two's complement divided by 256. Fantastic, now to figure out how to do it in script basic.
  6. MAths function with unsigned integer assigned a negative number

    I am trying to convert a C programme to a scrip basic language.

    The C programme is fairly simple but produces unexpected results - it is the unxpected result that I would like to emulate with...
Results 1 to 6 of 6