🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.os.msdos.programmer
Article #6188

Re: Fix for Zortech 386 Screen Memory Access wanted

#6188
From: russell wallace
Date: Sat, 26 Dec 1992 17:27
28 lines
1901 bytes
In <1992Dec23.190904.14515@proto.com> joe@proto.com (Joe Huffman) writes:

>rwallace@unix1.tcd.ie (russell wallace) writes:

>>Could someone mail me the fix for the problem with Zortech C++ v3.0,
>>compiling for 386 (extended memory model), when you try to access screen
>>memory (memory protection error)? 

>Can you give me an example?  It might be something you are doing wrong...
>We (FlashTek) supplied the extender to Zortech/Symantec and probably can 
>answer your questions as well as anybody...

Basically the method of accessing screen memory I'm using is with a far
pointer with segment = B800h and offset = row*160 + column*2, to give a
pointer to the character+attribute at (row,column). This works fine in
tiny, small, large etc. memory models, but does not work in extended
(option mx) memory model - as soon as I try to write a value into the
selected address, the program drops out to DOS with a 386 general
protection error. Presumably what's happening is that the 386 DOS
extender assumes that since I don't have permission to write to that
area of memory, a memory protection violation has occurred. I've heard
that a fix can be downloaded from Zortech's bulletin board, but I can't
access that.

--
"To summarize the summary of the summary: people are a problem"
Russell Wallace, Trinity College, Dublin
rwallace@unix1.tcd.ie
Technical Details
Message-ID: <rwallace.725390879@unix1.tcd.ie>
Path: arc1-ca.pugleaf.net!sparky!uunet!pipex!bnr.co.uk!uknet!ieunet!tcdcs!unix1.tcd.ie!rwallace
References: <rwallace.724701384@unix1.tcd.ie> <1992Dec23.190904.14515@proto.com>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!sparky!uunet!pipex!bnr.co.uk!uknet!ieunet!tcdcs!unix1.tcd.ie!rwallace
From: rwallace@unix1.tcd.ie (russell wallace)
Newsgroups: comp.os.msdos.programmer
Subject: Re: Fix for Zortech 386 Screen Memory Access wanted
Message-ID: <rwallace.725390879@unix1.tcd.ie>
Date: 26 Dec 92 17:27:59 GMT
References: <rwallace.724701384@unix1.tcd.ie> <1992Dec23.190904.14515@proto.com>
Sender: usenet@cs.tcd.ie (NN required at ashe.cs.tcd.ie)
Organization: Trinity College, Dublin
Lines: 28
Nntp-Posting-Host: unix1.tcd.ie