G
Guest
Tim Harig wrote:
) On 2009-05-06, Willem <[email protected]> wrote:
)> Nonsense. You don't need any standards for binary representation, all you
)> need is a way to map the emulated binary representation on an unsigned int.
)> Which is perfectly possible in standard C.
)
) All of the above values can be used to specify the number -127; but, they
) are not equivalant.
They are irrelevant. All you use is the value itself: -127.
) If these binary values are used to control motors
) in a CNC mill they may not produce the same shape.
The emulator is not linked to a real CNC machine, is it ?
So, the CNC machine emulator should also be written in
standard C, using the value, and not caring about
the underlying representation.
I'd have thought even if it *were* connected to a CNC machine
you could do a conversion from internal to external format
before the CNC machine saw the bits. And I'd also have thought
the conversion could be done in portable C.