Newbie needs mouse registers 'n stuff

Hey all, I'm pretty new at Pascal and program in Turbo Pascal 7.0.
Anywayz, I want to be able to use the mouse in my programs but I don't
know any of the commands to read mouse position, button status etc. If
anyone can help me out I'd appreciate it. thanks in advance.