I know with MS-DOS 6.X and earlier it was possible to do that pretty easily with assembly code, but for console windows in MS-Windows I don't think it is possible. If you have a win32 GUI program then you would implement scroll bars
mouse functions only get and set the mouse coordinates on the screen and, by itself, has nothing to do with scrolling. The only way I know of to cause scrolling via the mouse is to use scrollbars as I mentioned previously.
>>i am not getting right registers in which these programs are available.
I don't know what you mean by that. What compiler are you using? If Turbo C, then see this article about mouse functions.