Message-ID: <19990111151945.20057.rocketmail@send101.yahoomail.com> Date: Mon, 11 Jan 1999 07:19:45 -0800 (PST) From: Mohamed Saad Subject: Re: some questions... To: djgpp AT delorie DOT com MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Reply-To: djgpp AT delorie DOT com Hello, well... I have already wrote the functions in Assembler and optimized them to the extreme (the best i could!) but every thing was made in real mode not protected mode! but as the speed was not so good (120 fps and i still have not implemented a lot of things), i decided to switch to protected mode. I really don't think i need to get back to C after i have written all the functions in Assembler! (i use C as a skeleton and 90% of the functions are in Assembler). the faq does not explain really how can i change a selector. it merely says "use the macro dos_ds (or what was its name?) defined in "go32.h"" and that's all! perhaps i need a more detailed info! does any one know of a tutorial on the net for using assembler protected mode code? thanx a lot for ur suggests, with love, Mohamed El Dawy >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 >Eldredgenate AT cartsys DOT com _________________________________________________________ DO YOU YAHOO!? Get your free @yahoo.com address at http://mail.yahoo.com