/**************************************************************************/ /* PROGRAMME RESIDENT : AFFICHAGE PERMANENT DE L'HEURE A L'ECRAN */ /* COMPILATION */ /* tcc -N- -Ic:\tcpp\include -Lc:\tcpp\lib -eh_res c:\lib\obj.obj h_res.c */ /**************************************************************************/ #include <dos.h> #define CLOCK 0x1c extern unsigned _stklen=20; extern unsigned _heaplen=30; void interrupt (*interruption_sauvegarde)(); /**************************************************************************/ void installation( void interrupt (*traitement)() ) { disable(); interruption_sauvegarde=getvect(CLOCK); setvect(CLOCK,traitement); enable(); bdos(0x31,2000,0); /* taille du programme resident = 2000 * 16 octets */ } /**************************************************************************/ void interrupt traitement() { void fenetre_heure_ram_video(); fenetre_heure_ram_video(68,1,0x7f,0x7f); (*interruption_sauvegarde)(); } /**************************************************************************/ void main() { clrscr(); installation(traitement); }