I have a problem with accessing integer pointers and integer variables.the compiler places first the msb and then the lsb. example :memory location is 0xc000,i place an integer var ,it is placed as follows msb at 0xc000 and lsb at 0xc001. but what if i want to do the reverse . if i access the variable and display it using pointer or macro xword ,it displays the reverse binary pattern. Help please.
Read Appendix E, "Byte Ordering" If you want to access bytes with a different ordering to the compiler's ordering, you'll have to use standard techiques like unions (non-portable, quick) or shifting & masking (portable, but possibly slower)