cvs.gedasymbols.org/archives/browse.cgi   search  
Mail Archives: djgpp/1997/08/06/19:03:58

From: "xIGOO" <jan-erik DOT henriksson AT mailbox DOT swipnet DOT se>
Newsgroups: comp.os.msdos.djgpp
Subject: Video memory access speed!!
Date: Wed, 6 Aug 1997 20:27:57 +0200
Organization: PRIVATE
Lines: 37
Message-ID: <870892287.525336@mn8>
NNTP-Posting-Host: mn8.swip.net
Cache-Post-Path: mn8!s-71094 AT dialup145-7-8 DOT swipnet DOT se
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp

Hello,

which is the fastest way to access video memory in DJGPP?

I have tried these two ways:

1.
void set_video_mode(int mode)
{
         union REGS regs;
regs.x.ax = mode;
int86(0x10, &regs, &regs);
}

2.
void set_video_mode(int mode)
{
__dpmi_regs regs;
regs.x.ax = mode;
__dpmi_int(0x10, &regs);
}

Which of these two is the fastest way to access video memory, or is there a
faster way? Please e-mail me if you have any idea (or comments!).

thanx, 

// Jakob




--
========================================
E-mail: jan-erik DOT henriksson AT mailbox DOT swipnet DOT se 


- Raw text -


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