Home Forums C Programming Using the interrupts in c language Reply To: Using the interrupts in c language

#3131
coolsoum
Participant

As i already explained how to use intrepput routine in BIOS now here is example to get the time from the CMOS

#include
#include
void main()
{
int size[10],i=0;
union REGS inregs,outregs;
inregs.h.ah=0x02;
int86(0x1A,&inregs,&outregs);
size[0]=outregs.h.ch;
size[1]=outregs.h.cl;
size[2]=outregs.h.dh;
size[3]=outregs.h.dl;
printf("n%d",size);
for(i=1;i<=3;i++)
printf(":%d",size);
}