Steven Katz

Hello:   I am writing a program (for the MPC555 / 32-bit...

Discussion created by Steven Katz on Aug 12, 2007
Latest reply on Aug 20, 2007 by CrasyCat



I am writing a program (for the MPC555 / 32-bit uP) that stores binary data (with radix point) in an array and performs math operations on this data.  The result is stored in the array. 


Is there a way to initialize the array so that it accepts, stores and displays data only in the binary format?  The issue is that the array displays the result in the Decimal format.


For example, I would like the following operands entered to the array to yield the result shown:


      11  operand1 (binary)

   + 01  operand2 (binary)

    100  result (binary)


However, the result appears as '12'.


Your suggestions would be most appreciated.