[comp.sys.ibm.pc] Keyboard Speedup / 80286 Machine Language problem

derrick@tahoe.unr.edu (Derrick Hamner) (08/07/88)

	I am trying to write a simple little ML program to speed up the
keyboard repeat rate on my 286.  I've gotten a debug script to do this, but
I figured it would be so much more graceful to write a program.  The debug
script is:
O 60 F3		;Copy F3h to port 60h
O 60 00		;Copy 00h to port 60h
Q

	Seems simple enough, so I write the following program using debug:
MOV AL,F3	;Copy F3h to the AL register
OUT 60,AL	;Output the contents of the AL register to port 60h
MOV AL,00	;Copy 00h to the AL register
OUT 60,AL	;Output the contents of the AL register to port 60h
INT 20		;Return control to DOS (i.e. End program)

	No go, so I try:
MOV AX,F300	;Copy F300h to the AX register
OUT 60,AX	;Output the contents of the AX register to port 60h
INT 20		;Return control to DOS (i.e. End program)

	Still doesn't work.  Just turns on the "beep" (and leaves it on!).
It seems that the PPI is being written to, but that doesn't explain why the
debug script works, and this does not.  I am severly confused, and would
appreciate any help in explaining this.  Email or newsgroup would be
great.

Thanks,
Derrick

-- 
-----------------------------------------------------------------------------
|  Hacker, n. : A computer addict, not      |        Derrick Hamner         |
|               necessarily malevolent.     |   tahoe.unr.edu.UUCP!derrick  |
-----------------------------------------------------------------------------