Does somebody have the code to split a long into two integers (the high and the low word)?

I have got the High Word so far (by integer division by &H10000).

Even better would be if I could have a hint about how to split an integer. This one is even more difficult. I need bit 0 to 9, and bit 10 to 15 in seperate (integer) variables.

If anybody could point me in the right direction would be great.