Mail Archives: djgpp/1996/06/09/10:53:59
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 -