CS609 Assignment No.2 2020
#include<BIOS.H>
#include<DOS.H>
unsigned char far *scr=(unsigned char far*)0xb8000000;
unsigned long int far *time = (unsigned long int far*)
0x0040006C ;
char st[80]
={"my name is "};
char st1[80]
={"my student id is "};
void main() {
unsigned long int tx;
int i;
while (!kbhit()) {
clrscr();
tx=(*time);
tx = tx +54;
puts(st);
while((*time) <=
tx);
tx=tx+54;
puts(st1);
while((*time) <=
tx);clrscr();
tx=tx+54;
for
(i=0;i<2000;i++)
{ *scr=0x56;
scr=scr+2;
}
while((*time) <= tx);
}
}
Comments
Post a Comment