www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1995/01/29/05:19:02

To: "A.Appleyard" <A DOT APPLEYARD AT fs2 DOT mt DOT umist DOT ac DOT uk>
Cc: djgpp AT sun DOT soe DOT clarkson DOT edu
Subject: Re: V2
Date: Sun, 29 Jan 95 09:40:13 +0200
From: "Eli Zaretskii" <eliz AT is DOT elta DOT co DOT il>

> 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 -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019