Mail Archives: djgpp/2001/01/15/17:36:34
Thanks, I will perhaps read more about that when I know some more assembly,
Im only half way through a book called step-by-step assembly, and I think it
doesn't cover very much either, so it may take a while before Im able to do
that in assembly.
Anyway, thank you for taking time replying.
Stefan Viljoen <Stefan_Viljoen AT excite DOT com> wrote in message
news:93vde1$2fb$1 AT ctb-nnrp2 DOT saix DOT net...
>
> Jon <lennier AT online DOT no> wrote in message
> news:57n86.4082$wt2 DOT 26425 AT news1 DOT oke DOT nextra DOT no...
> > I'm fairly new to programming, and have just started writing a program
in
> > DJGPP which uses
> > an ASCII GUI. The problem is that, it redraws the GUI very slow. Even on
> my
> > 850 MHZ Athlon, I can see the cursor drawing up the GUI. Currently I use
> the
> > gotoxy(); function and cprintf(); to draw the GUI.
> > But when doing big redraws, it just become too slow, like on another
> program
> > I made, I used the ASCII character 219 to form a word, which I moved
> across
> > the screen. This was also terrible slow.
> > So, do anyone know of a better way to draw up ASCII graphics without
using
> > the gotoxy and cprintf?
>
> Directly access video RAM at 0xB800 - there is a simple formula to
calculate
> linear memory addresses from X,Y pairs. Check my programming page
> http://home.intekom.com/rylan/
> for examples of directly accessing VGA 320x200x256 graphics memory - this
> code can work in 80x25x16 color text mode by simply changing the segment
> address from 0xA000 ot 0xB800 and fiddling a little with the formula used
to
> plot points. Note that you'll need to use assembly to use my method,
though!
>
> Regards,
>
> Stefan Viljoen
> F/EMS Dispatcher
> Potchefstroom F/EMS
> http://home.intekom.com/rylan/
>
>
>
- Raw text -