IM trying to get into vga or svga mode in dos. Ive got my program to compile, but when i run it i get this fatal error:
A fatal exception 0D has occured at c166: 00000447

Any one know how to fix this, or what the problem is. Heres the code.

#include <iostream.h>
#include <conio.h>

unsigned char *Screen = (unsigned char *) 0xA0000000;

void initGraph (void)
{
__asm {
mov ax, 13h
int 10h
}
}

void finishGraph (void)
{
__asm {
mov ax, 03h
int 10h
}
}

void Plot (int x, int y, unsigned char color, unsigned char *buffer)
{
buffer[(y<<8)+(y<<6)+x] = color;
return;
}


int main (void)
{
initGraph();

Screen[0] = 3;

Plot(0, 0, 3, Screen);

getch();
finishGraph();


return 0;
}

Thanks.