home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Simtel MSDOS - Coast to Coast
/
simteldosarchivecoasttocoast.iso
/
pcmag
/
vol6n05.zip
/
THREECOM.ZIP
/
NOREPEAT.ASM
< prev
next >
Wrap
Assembly Source File
|
1987-02-22
|
768b
|
45 lines
; NOREPEAT.ASM - disables typematic key repetitions
; PC Magazine Vol 6 No 5 March 10, 1987 User-to-User
cseg segment
assume cs:cseg
org 100h
start: jmp short initialize
oldint9 dd ?
last_key db 0FFh
newint9 proc far
sti
push ax
in al,60h
cmp al,cs:last_key
je ignore
mov cs:last_key,al
pop ax
jmp cs:[oldint9]
ignore: in al,61h
mov ah,al
or al,80h
out 61h,al
xchg al,ah
out 61h,al
mov al,20h
out 20h,al
pop ax
iret
newint9 endp
assume ds:cseg
initialize:
mov ax,3509h
int 21h
mov word ptr [oldint9],bx
mov word ptr [oldint9+2],es
mov dx,offset newint9
mov ax,2509h
int 21h
mov dx,offset initialize
int 27h
cseg ends
end start