S
Sree
Hello Friends,
i was trying to read the Keyboard typeahead buffer from BIOS
according to its address.
But i'm not able to get the data.
Please tell me how to do so.
void main()
{
char far *p=(char* far)(0x0040001E);
int i=0;
clrscr();
for(i=0;i<32;i++)
printf("\n%4d %c",(*(p+i)),*(p+i));
getch();
}
i tried using a "near" pointer too. But not working!
i was trying to read the Keyboard typeahead buffer from BIOS
according to its address.
But i'm not able to get the data.
Please tell me how to do so.
void main()
{
char far *p=(char* far)(0x0040001E);
int i=0;
clrscr();
for(i=0;i<32;i++)
printf("\n%4d %c",(*(p+i)),*(p+i));
getch();
}
i tried using a "near" pointer too. But not working!