Hi, The code is given below.
void CSToOut(void) { static unsigned char data bSimulate[8] ; int I; for( I = 0 ;I < 8;I ++) { bSimulate[I] = 0x01 << I ; ComOutChar( bSimulate[I] ); } }
result: 00 00 00 00 00 00 00 00
why?
Why is bSimulate declared static?
What does the assembly that the compiler generates look like? I often find that looking at the assembly listing gives a lot of good information to help with debugging.