[comp.sys.ibm.pc] TURBO SPEED from KBD

Count.0@f28.n363.z1.FIDONET.ORG (Count 0) (04/14/89)

===
Attn: Eric Bohlman
Attn: BSC Keyboards
Attn: Turbo Speed
===


>On most computers that support speed-switching from the keyboard, the


    Eric,

    Many thanks for your input. I've already tried the following fragment
to read ports 60-6f.

/*-----*/
#define KBDPORT    0x60
#define NumReps  400

main()
{
int i,
    j,
    key=0,
    kludge;

unsigned char  portvalue;

char    c;

  for (i=0;i<NumReps;i++)
  {
    for (j=0x0;j<0xf;j++)
    {
        kludge=KBDPORT;
        portvalue=inportb(kludge+j);
        printf("%X  ",portvalue);
    }
    printf("\n" );
  }
}
/*-----*/

    When using Ctrl Alt +  , 4Eh shows up.
    When using Ctrl Alt -  , 4Ah shows up.

    I have used the following (& variations) to no avail:

mov  dx,0061
in   al,dx
mov  al,4ah     ; 4a for slow, and 4e for fast
out  dx,al
xor  ah,ah
int  21


    What is STRaNge though is that port 61 dynamically fluctuates
between 20 & 30 with no (apparent) pattern.


  *** ANYBODY ????

The traditional stuff ain't working.

Doc


--  

** REPLY VIA USENET OR FIDONET ONLY!  The From: line is not correct. **

Fidonet:  Count 0 via 1:363/9
Usenet:  ...!peora!rtmvax!mamab!28!Count.0