home *** CD-ROM | disk | FTP | other *** search
- You should now have the following files:
-
- CLOKDEMO.C - C demo
- CLOKDEMO.EXE - Working version (hopefully) of the demo
- CLOCK.H - C Header file
- CLOCKFUN.C - Functions to handle the clock. It currently only
- sets the position.
- CLOCKFUN.OBJ - Compiled (Small Model) CLOCKFUN.C
- README.TXT - This file
- CLOCKRES.ASM - .ASM source
- CLOCKRES.OBJ - Small model .OBJ file you can link to a C program,
- reassemble for anything else.
- CLOCKRES.COM - TSR, reboot to remove from memory.
-
-
- This is real easy to use, just follow the example in CLOKDEMO.C
-
- There are three equates in the CLOCKRES.ASM file that can be changed
- as follows:
-
- If TSR is set to 0, the file will assemble to a object file for
- linking into your C program. If TSR is set to nonzero, the file will
- assemble to a TSR. As currently written, this TSR will will require a
- reboot to be removed from memory. If you assemble to a TSR, you will
- need to link it and use EXE2BIN to convert it to a .COM file, or you
- can use the /t option in TLINK and save yourself the trouble.
-
- By the way, CLOCKRES.ASM is written using TASM's IDEAL mode. If you
- feel like you have to use MASM or something else, it shouldn't be to
- hard to convert it to something that MASM likes, or you can buy TASM
- and save yourself the trouble.
-
- Set ATBIOS to zero for machines that don't have a real time clock,
- (most XT class machines.) Setting ATBIOS to something other than zero
- causes a different function call to be assembled, which makes the code
- smaller, but perhaps slower. Either setting will work for AT class
- machines or better.
-
- If you are assembling the C callable version and will not be writing over
- the clock occasionally, set REFRESH to 0. This will allow screen
- updates only when the time actually changes, which will leave more
- time for the machine to do things that might actually be important.
-
- If you are using something besides the SMALL memory model, change
- line 24 of CLOCKRES.ASM.
-
- Due to an approximation I made in the ATBIOS = 0 version of the code,
- the clock can sometimes be a few seconds off, but who cares?
-
- For What It's Worth, this thing is FREE.
- Please keep the original files together and distribute them unchanged!
-
- (c) David C. Schooley (CIS 72571,2543)
- Birmingham, AL and Stillwater, OK (GO Pokes!!!)
- October 1990