CONSIDER THIS PROGRAM:
#include<stdio.h>
#include<conio.h>
#include"dos.h"
#include<bios.h>
void main()
{
void far (*p)();
p=0xFFFF0000;
(*p)();
}
in the above program when i try to compile this with turbo c ver 3.0 it gives error message initially,after closing the turbo compiler and opening it again,the program runs,but never does anything!!!hangs down,DOS error come where it says that this program has performed an illegal operation.NOTE:THIS IS A PROGRAM which calls ROM-BIOS routine no 1,which it performs during booting process,so the address simply tries to access the bios routine itself.
#include<stdio.h>
#include<conio.h>
#include"dos.h"
#include<bios.h>
void main()
{
void far (*p)();
p=0xFFFF0000;
(*p)();
}
in the above program when i try to compile this with turbo c ver 3.0 it gives error message initially,after closing the turbo compiler and opening it again,the program runs,but never does anything!!!hangs down,DOS error come where it says that this program has performed an illegal operation.NOTE:THIS IS A PROGRAM which calls ROM-BIOS routine no 1,which it performs during booting process,so the address simply tries to access the bios routine itself.