🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: rec.games.programmer
Article #1944

256 VGA (mode 13h)

#1944
From: Benjamin Librojo
Date: Tue, 12 Jan 1993 10:35
12 lines
1034 bytes
	Has anyone out there written code for directly accessing display 
memory in VGA 320X200 (256 colors) mode ? For some reason in my program,
if the y-coord is greater than 100 the x position of the pixel seems to be
out by about ten pixels. Does anyone know why this is? Am I doing something
wrong or is the display memory arranged in some strange manner? The only way
I can think of rectifying the situation, is by adding 10 (or whatever) to
the x-coord if the y-coord is greater than 100. But this will obviously
slow things down, and the whole point of writing directly to display memory
is to obtain optimum speed. Can anyone help ????

thanks from Ben
Technical Details
Message-ID: <C0qLEE.JI8@dcs.ed.ac.uk>
Path: arc1-ca.pugleaf.net!sparky!uunet!mcsun!uknet!edcastle!dcs.ed.ac.uk!bal

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!sparky!uunet!mcsun!uknet!edcastle!dcs.ed.ac.uk!bal
From: bal@dcs.ed.ac.uk (Benjamin Librojo)
Newsgroups: rec.games.programmer
Subject: 256 VGA (mode 13h)
Message-ID: <C0qLEE.JI8@dcs.ed.ac.uk>
Date: 12 Jan 93 10:35:01 GMT
Sender: cnews@dcs.ed.ac.uk (UseNet News Admin)
Organization: Department of Computer Science, University of Edinburgh
Lines: 12