Mail Archives: djgpp/1999/01/11/10:20:41
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
- Raw text -