| ??? 05/15/03 16:48 Read: times |
#45552 - RE: can not write to port(s) (89s8252) Responding to: ???'s previous message |
Hi Erik,
I think this is an excellent case where just because it compiles doesn't mean it's correct. Be very carefull when using signed numbers where you *really* want to use unsigned. What's happinging here is that you NEVER exit the inner loop...i will count up to its maximum value (0x7FFF) and roll over to 0, never meeting the compare against < 0xFFFF (which is -1). I wish I could say I haven't made this same mistake. Or that I'd only made this mistake once... Dennis |



