home *** CD-ROM | disk | FTP | other *** search
- #include <dos.h>
- #include <conio.h>
- #include "\tc\files\clock.h"
-
-
- void interrupt DoTimer();
-
- void main()
- {
- int x,y;
- char wait;
-
- /* Save the old interrupt vector */
- oldint1C = getvect(0x1C);
-
- clrscr();
-
- cputs("Clock x-coordinate: ");
- cscanf("%d",&x);
- cputs("\n\rClock y-coordinate: ");
- cscanf("%d",&y);
-
- ChangeClockPos(x,y);
-
-
- /* Set the new interrupt vector */
- setvect(0x1C,DoTimer);
- clrscr();
- cputs("Hit [ESC] to quit");
- x = 1;
- while (x != 27)
- x = getch();
-
-
- /* Restore the old interrupt vector */
- setvect(0x1C,oldint1C);
-
-
-
- }
-
-
- void interrupt DoTimer()
- {
- TimerHit();
- }