Sender: nate AT cartsys DOT com Message-ID: <369912CC.9E6918A9@cartsys.com> Date: Sun, 10 Jan 1999 12:51:24 -0800 From: Nate Eldredge X-Mailer: Mozilla 4.08 [en] (X11; I; Linux 2.0.36 i586) MIME-Version: 1.0 To: djgpp AT delorie DOT com Subject: Re: some questions... References: <19990109073041 DOT 17390 DOT rocketmail AT send106 DOT yahoomail DOT com> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Reply-To: djgpp AT delorie DOT com Mohamed Saad wrote: > > Hello all, > how are u? hope u r all very well... > > thanx a lot for ur reply (and many thanx to DeHacked too!). I read > section 10.2 of the faq and things are becoming a bit clearer... but, > i'd certainly love to use assembler for writing the graphics routines. > they make things a lot faster, Speed is really my only concern! > (complexity of code and space does not really matter a lot). I am > searching through the net for a week now, i still can't find any > (simple) unit with some assembler graphics routines for DJGPP. With all due respect, I'd suggest to hold off on the assembler for the time being. Assembler is much harder to maintain and debug, especially when you're still learning the whole DJGPP bit. The first rule of optimizing is not to make it fast until you've made it right. And you might be surprised at GCC's code quality, especially if your algorithm is good (and if it's bad, writing it in assembler won't help it). > so the question is... How can i use assembler to write the graphics > routines in DJGPP? Load a selector for video memory (which the FAQ explains how to get), and poke away. You can get an idea by looking at the generated assembly of your C source (use -S). -- Nate Eldredge nate AT cartsys DOT com