Mail Archives: djgpp/1998/07/12/18:02:16
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,®s,®s );
if( (regs.x.flags & 0x0040) != 0 ) return 0;
regs.h.ah = 0x00;
int86( 0x16,®s,®s );
return regs.x.ax;
}
- Raw text -