www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1996/06/09/10:53:59

Date: Sun, 9 Jun 1996 17:38:00 +0200 (IST)
From: Eli Zaretskii <eliz AT is DOT elta DOT co DOT il>
To: Goncalo Farias <mad AT grupo DOT bfe DOT pt>
Cc: djgpp AT delorie DOT com
Subject: Re: I'm unable do understand...
In-Reply-To: <1.5.4.32.19960609091738.0066e974@mail.telepac.pt>
Message-Id: <Pine.SUN.3.91.960609173228.342b-100000@is>
Mime-Version: 1.0

On Sun, 9 Jun 1996, Goncalo Farias wrote:

>  movedata(_dos_ds, 0xb8000 + ScreenCols()*2, _dos_ds, 0xb8000,
>  ScreenCols() * (ScreenRows()-1) * 2);

`dos_ds' is a function, not a variable.  What your code does is instruct
`movedata' to move the buffer to the address of that function interpreted 
as a selector, and memory protection blows your program off the water.

> It's weird. Shouldn't this example from the info files work? 

Nobody said that the docs are bug-free.  I won't recommend using *any*
example before you looked up every symbol in the docs and understood how 
does that example work (or doesn't work ;-).

- Raw text -


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