Xref: news2.mv.net comp.os.msdos.djgpp:4267 From: jeremy AT neosoft DOT com (Jeremy W. Deats) Newsgroups: comp.os.msdos.djgpp Subject: Simple mode 13h stuff... why doesn't this work? Date: Sun, 26 May 1996 01:29:11 UNDEFINED Organization: NeoSoft, Inc. TEST NEWS SERVER Lines: 55 Message-ID: NNTP-Posting-Host: pandora-slip-g0.neosoft.com To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Can anyone tell me why this doesn't work? >>> #include #include #include void Fill_Screen(int color); void Turn_On_VGA(); unsigned char *video_buffer = (unsigned char *)0xe00a0000L; main() { Fill_Screen(0); Turn_On_VGA(); Fill_Screen(15); return 0; } void Fill_Screen(int color) { int i; for (i=0;i<64000;i++) { video_buffer[i]=color; } return; } void Turn_On_VGA() { __dpmi_regs r; r.x.ax = 0x13; __dpmi_int(0x10,&r); return; } <<< Thanks, j.d. jeremy AT neosoft DOT com