Mail Archives: djgpp/1995/01/29/05:19:02
> In my program I have to write to the text screen a LOT. How much longer will
> it take using this `dosmemput()' every time, than direct writing to addresses
> like I do now? I don't always write to screen as neat whole bufferfuls, but
> often one character here, one there. So I declare `unsigned short *screen'
For your application, farptr functions are ideal. When you compile
with optimizations enables, they emit inline assembly code which
uses 2-3 machine instructions per access. I don't think this is
more than what the direct access will compile to.
- Raw text -