Xref: news-dnh.mv.net comp.os.msdos.djgpp:2934 Path: news-dnh.mv.net!mv!news.sprintlink.net!newsfeed.internetmci.com!howland.reston.ans.net!math.ohio-state.edu!jussieu.fr!univ-lyon1.fr!in2p3.fr!swidir.switch.ch!scsing.switch.ch!news.rediris.es!panoramix.fi.upm.es!zipi.fi.upm.es!a920101 From: a920101 AT zipi DOT fi DOT upm DOT es Newsgroups: comp.os.msdos.djgpp Subject: Scrolling in ASM Date: 30 Oct 95 09:28:53 +0100 Organization: Facultad de Informatica - (UPM) Lines: 21 Nntp-Posting-Host: zipi.fi.upm.es To: djgpp AT sun DOT soe DOT clarkson DOT edu Dj-Gateway: from newsgroup comp.os.msdos.djgpp I am porting all my libs and progs to DJGPP, but i have problems, especially the parts written in assembler (that Protected mode...) I got the FAQ for DJGPP game programmers, and there it explains how to access the video memory, etc... With that, I was able to port the PutPixel routine. The problem now is Scrolling the screen one row up. What I am trying to do is copying the 199 bottom lines to the first one, but it complains about segmentation violation. I am using a movsl instruction. The code appears to work when i copy a block of normal memory to the video mem, but not when i copy a block of video mem. to video mem. I supposse i am breaking some PM rules, am I?? Any info is welcome. *Thanks* you all! Juanje.