Microsoft KB Archive/43335

= cegal Function in EGA.LIB May Not Work Properly =

Article ID: 43335

Article Last Modified on 9/24/2003

-

APPLIES TO


 * Microsoft Mouse Driver 9.0 Standard Edition
 * Microsoft Mouse Driver 9.1 Standard Edition
 * Microsoft Mouse Driver 7.04 Standard Edition
 * Microsoft Mouse Driver 8.2 Standard Edition

-



This article was previously published under Q43335



SUMMARY
When using cegal in the EGA.LIB with Function f1, cegal doesn't perform correctly. An example is shown below.



MORE INFORMATION
Perform the following function in C  outp(CRTC_INDEX,INDEX); where CRTC_INDEX is the port address and INDEX is the register.

The mouse does not see the change in the EGA register; therefore, the above C call may cause the mouse to not perform properly because the call bypasses the BIOS routines.

The following are examples of two ways to perform this call:

  Use the EGA.LIB (this does not work): e1=0xf1; e2=0xd; e4=0; cegal(&e1,&e2,&e3,&e4,&e5);   Use the equivalent BIOS call (this works): inregs.x.ax=0xf1; inregs.x.bx=0xd; inregs.x.dx=0; int86(0x10,&inregs,&outregs); 

Additional query words: program

Keywords: KB43335

-

[mailto:TECHNET@MICROSOFT.COM Send feedback to Microsoft]

© Microsoft Corporation. All rights reserved.