how can I modify this programme?
The following programme runs succefully under ms-dos
but it can't run under linux(red hat 7.2)
is there some code that can perform the same function,and ,
of course,can run succeful under linux!
#include<stdio.h>
typedef struct texel_struct{
unsigned char ch;
unsigned char attr;
}texel;
typedef texel screen_array[25][80];
screen_array far * screen_ptr = (screen_array far *)0xb8000000L ;
#define screen (*screen_ptr)
main()
{
clrscr();
screen[0][0].ch = 'a';
screen[0][0].attr = 0x58;
getchar();
}
Thanks in advance!
|