??? 05/29/06 05:39 Modified: 05/29/06 05:40 Read: times |
#117211 - Update / Further Puzzle Responding to: ???'s previous message |
Okay I've been working at this a while and have finally accessed the memory both r/w successfully. Now I'm wondering why I have to access it a certain way. Okay the only way I've been able to access this memory is by passing it through a variable first (see code clipping below). Anyone have any idea about this and what could be causing this restriction?
CODE: xdata char ioPorts[2]; char myPorts[2]; char temp1 = 128; char temp2 = 128; myPorts[0] = 'C'; myPorts[1] = 'D'; ioPorts[0] = myPorts[1]; ioPorts[1] = myPorts[0]; temp1 = ioPorts[1]; temp2 = ioPorts[0]; put_serialbyte( temp1 ); put_serialbyte( temp2 ); Also I wanted to thank everyone for their contributions, they are appreciated |