Hello
Which processor are you targeting (MPC, Coldfire, HC12, ...)?
What are you trying to do exactly?
Are you trying to access MSByte and LSByte from an address in assembler?
Are you trying to do that in ANSI C?
I need more information to provide an answer.
CrasyCat
Try this:
int a16bitNumber = 0x1122;
char* ptr;
char lowByte, highByte;
ptr = (char*)&a16bitNumber;
highByte = *ptr++;
lowByte = *ptr;
Now highByte will hold 0x11 and lowByte will hold 0x22.
Hello
I still need to know the processor you are targeting (HC08, HC12, Coldfire, EPPC5xx, .....)
CrasyCat