From: Ludvig Larsson Newsgroups: comp.os.msdos.djgpp Subject: Re: Graphics in djgpp and inline asm in djgpp Date: Tue, 03 Nov 1998 20:37:05 +0100 Organization: Faas-Goldhart Lines: 30 Message-ID: <363F5B61.3226@club-internet.fr> References: <363f3759 DOT 2670843 AT news DOT algonet DOT se> NNTP-Posting-Host: toulouse-camichel8-86.club-internet.fr Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Trace: front2.grolier.fr 910123425 19960 195.36.147.86 (3 Nov 1998 20:03:45 GMT) NNTP-Posting-Date: 3 Nov 1998 20:03:45 GMT X-Mailer: Mozilla 3.01C-CLUB (Win95; I) To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Reply-To: djgpp AT delorie DOT com Hi! There are many differencies between realmode and protectedmode programming, ex. you can't poke/peek absolute adresses(like A0000 for the graphics), and well interrupts are handled by, I guess, the DPMI service. I use __dpmi_regs and __dpmi_int instead of unon regs and a memory "window" the size of 64kb located at A0000 for the paged graphics. How to do then? Maybe you can find a hint or two in a small graphics tutorial a wrote 4 a clock after work one night, the adress is http://www.geocities.com/TimesSquare/Arena/1645/index.html it deals with simple graphics like setmode put/get bmp etc and is cut out of my c-code written for the DJGPP compilator. Do also read the faq, there are all the information you'll need to optimize your graphics AFAIK. HTH Ludvig Larsson ps. if you really want to know everything about all graphic secrets, get the Allegro graphics library(well, it's more than graphics I think...) and its sourcecode.