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 =...
Type: Posts; User: Teropita
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 =...
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 ...
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...
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...
Thanks laserlight it was the two's complement divided by 256. Fantastic, now to figure out how to do it in script basic.
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...