delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1997/12/10/13:31:30

From: Charles Krug <charles AT pentek DOT com>
Newsgroups: comp.os.msdos.djgpp
Subject: Storing text screens in protected mode?
Date: Wed, 10 Dec 1997 09:03:48 -0500
Lines: 13
Message-ID: <348EA143.23BF0E2B@pentek.com>
NNTP-Posting-Host: mail.pentek.com
Mime-Version: 1.0
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp

One of my favorite real mode tricks is to have my text screens stored in
an integer array.  Reletively simple to do in real mode--just set SI to
point to the screen buffer, DI to my array, CX to the buffer size and
"rep stosw" it over.  This was a very important trick on 8088
systems--though it's less important now.

Question--is it possible to get the base address of the screen buffer in
protected mode or is it necessary to go back to real mode to do this

--
Charles Krug, Jr.


- Raw text -


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