How do I use unloadseg?

I am using think pascal 4.5. I need to unload one of my programs segments. But I can't figure out how. I write unloadseg(a pointer to the segment). What I can't figure out is how to create a pointer to a segment. Please help.