www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1997/09/25/04:44:30

Message-Id: <199709250844.SAA21218@rabble.uow.edu.au>
Subject: djgpp vid. mem. access
To: djgpp AT delorie DOT com (DJGPP)
Date: Thu, 25 Sep 1997 18:44:06 +1000 (EST)
From: Brett Porter <bporter AT rabble DOT uow DOT edu DOT au>
MIME-Version: 1.0

I am writing code for a FLI player (to anyone that followed my previous
question, yes, I've fixed it up so it uses 60K instead of 6Mb now :)

They way I am doing it now is to recalculate the FLI frame and store it in a
buffer (64Kb). I then use the instruction (in mode 0x13):

	_movedatal(_my_ds(),(int)fBuffer,VidMemSelector,0,16000L);

Where fBuffer holds the screen to be displayed and VidMemSelector is an
assigned selector to 0xA000.

The code works fine, but it is a little slow. Is there a faster way to do
this (fBuffer is a member of the class and this function is called inside
that class. Maybe I need to align it differently? I know next to nothing on
alignment...)

Thanks in advance,

Brett

-- 
"Give me ambiguity or give me something else"
--
Brett Porter
bporter AT rabble DOT uow DOT edu DOT au

http://www.geocities.com/CollegePark/Union/3596
	Humour, Programming, and more.

- Raw text -


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