www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1998/07/12/18:02:16

Message-ID: <35A931E7.6369@teleline.es>
Date: Mon, 13 Jul 1998 00:00:07 +0200
From: Mariano Alvarez Fernández <malfer AT teleline DOT es>
Reply-To: malfer AT teleline DOT es
Organization: teleline.es
MIME-Version: 1.0
To: Eli Zaretskii <eliz AT is DOT elta DOT co DOT il>
CC: djgpp AT delorie DOT com
Subject: Re: About DJGPP v2.02
References: <Pine DOT SUN DOT 3 DOT 91 DOT 980712190931 DOT 27114I-100000 AT is>

Eli Zaretskii wrote:
> 
> On Sat, 11 Jul 1998, Mariano Alvarez Fernández wrote:
> 
> >   %   cumulative   self              self     total
> >  time   seconds   seconds    calls  us/call  us/call  name
> >  56.12     33.11    33.11                             __dpmi_int
> >  18.08     43.78    10.67                             mcount
> >  15.44     52.89     9.11                             __dj_movedata
> >   2.07     54.11     1.22                             _int86
> 
> Seems you are calling `int86' a lot.  What do you use it for?

I use basically it to handle low-level keyboard input:

#define _NAIVE_DOS_REGS

int lee_tecla( void )
{
  union REGS regs;

  regs.h.ah = 0x01;
  int86( 0x16,&regs,&regs );
  if( (regs.x.flags & 0x0040) != 0 ) return 0;
  regs.h.ah = 0x00;
  int86( 0x16,&regs,&regs );
  return regs.x.ax;
}

- Raw text -


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