What's the 0x0D in front of the 0x0DAB(x coordinate) for?
So in order to get the x coordinate you would need to use (xCoord = read_word(0x1014280C) >> 8) in order to remove the two bytes on the end, but how would I remove the t3wo bytes on the beginning(the 0xAB) ?
I'm not a specialist at bitwise operations, but you could do it like this:
xCoord = read_word(0x1014280C) << 8;
xCoord = xCoord >> 16;
This should shift it left, removing the first byte, then shift it to right removing the last byte and placing the number in the lower bytes (resulting in the correct number).
This is of course assuming, that the value in that part of memory is always doubled like this. (as in, AB0DAB0D, or for example AA00AA00)