??? 12/07/06 19:28 Read: times |
#129165 - typo Responding to: ???'s previous message |
Erik, you copy/pasted your example and forgot to change "int" for "char" in the secon example.
Richard, you might be perhaps confused that the OP freely uses the 16-bit int in a function which expects 8-bit char. This is unfortunately OK in C, it will quietly throw away the high byte. Erik Malund said:
anyhow, your point "do not debig hardware with C code" is extremely valid. Yeah, yeah. And this extends to any other HLL too. JW (the C hater) |