www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1996/05/26/19:14:09

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: <jeremy.27.00190156@neosoft.com>
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 <stdio.h>
#include <dpmi.h>
#include <go32.h>

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


- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019