Date: Sun, 9 Jun 1996 17:38:00 +0200 (IST) From: Eli Zaretskii To: Goncalo Farias 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: Mime-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII 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 ;-).