||A TSR CLOCK.
||Bhanuj J Soni
||bhanuj_soni [at] rediffmail.com
||This is the TSR clock in c language.
Every time when dos run u have to run exe file of this source code and you get result.
This utility works properly only in the text mode. Since the time is to be displayed by directly writing it into VDU memory it is necessary to find out the base address of the VDU memory. This address depends on the initial video mode in which the computer has booted. The initial video mode is stored at bits 4 and 5 location 0x410. If both
the bits are on then the computer must have booted in monochrome text mode, otherwise in CGA text mode. Hence, to begin with, in main( ) the initial
video mode is determined and the corresponding base address is stored in scr. Next the contents of IVT are changed such that the routine mytimer()
would get called whenever the timer ticks, and the program is made resident by calling keep( ).
||C » Terminate but Stay Resident (TSR)
|| Select and Copy the Code