hello...
i wrote this program to fill the screen with 2000 copies of single of character, by acces the address of memory on video memory
but this program does not work well....help plz
here is the code...
#include<stdio.h>
#include<conio.h>
#define LENGTH 2000
void main(void)
{
int far *farptr;
int position;
char ch;
printf("\nType character to start, type again to change");
farptr= (int far *) 0XB800000L;
while((ch=getch()) != '\r')
for(position=0; position<LENGTH; position++)
*(farptr + position)= (int)ch | 0x0700;
}