Re: Losing data when extracting bytes from words - 16F18855
1. Why does this compile OK? I mean the asm/endasm block is before defining the variables. Shouldn't the compiler complain about that?
why would it complain? the asm block generates no code at all , it only creates labels for the assembler
2. the sub TransmitData transfers data to variables Num0-Num9 from MsgLoop but then sends the str MsgData. Is this correct?
yes, MsgData is a 21 byte structure that holds the vars Num0-Num9 + ADCcode
Warning I'm not a teacher
Bookmarks