Hello Rajesh From my understanding, the compiler will generate the code for word access when using a (word *) pointer, but you can force byte access if you type-cast it to a byte pointer. If SomePtr points to a structure with words in it, probably everything in that structure is word-aligned, so to get the byte address you would access it by putting (byte *)SomePtr = ... . Hope this is correct! Robert On 10.09.2004, at 07:36, Rajesh Singh wrote: > Hey > > Trying to access some memory, now its a char * array, now memory > (physical) seems to be word aligned, but I should be able to access a > character at the end of the word.. > > Say, at 0x1DA3 (location) I have two bytes, 0x2C and 0x00, now my > pointer is starting at character 0x00, but when I try to read from > there on, by pointing a byte structure to it, it jumps back a byte and > starts from the start of an address, so the first character is 0x2C > > Anyway I can point a byte structure in the middle of a location? > Assumed it would just be possible using byte structures and pointers > but inherently it wants to align to the word > > HELP.. > > Rajesh Singh |