Forum Replies Created
Viewing 1 post (of 1 total)
- AuthorPosts
- coolsoumParticipant
As i already explained how to use intrepput routine in BIOS now here is example to get the time from the CMOS
12345678910111213141516#include<dos.h><br />#include<stdio.h><br />void main()<br />{<br />int size[10],i=0;<br />union REGS inregs,outregs;<br />inregs.h.ah=0x02;<br />int86(0x1A,&inregs,&outregs);<br />size[0]=outregs.h.ch;<br />size[1]=outregs.h.cl;<br />size[2]=outregs.h.dh;<br />size[3]=outregs.h.dl;<br />printf("n%d",size);<br />for(i=1;i<=3;i++)<br />printf(":%d",size);<br />} - AuthorPosts
Viewing 1 post (of 1 total)