;Copyright 2000 - Mark McDonald All rights reserved
; DECLARE: FUNCTION ISSLP() AS INTEGER
; DESC:    Returns true if Scroll Lock key is depressed.
; EXAMP:   IF ISSLP THEN GOTO ...

MCODE   Segment Byte
        Assume  CS: MCODE

        Public  ISSLP

ISSLP Proc Far
        push    ES                      ;

        xor     AX,AX                   ; clear AX
        mov     ES,AX                   ; set ES to BIOS data segment
        test    Byte Ptr ES: [418h],16  ; is Scroll Lock key depressed?
        jz      Exit                    ; no, exit
        inc     AX                      ; return true (1)
Exit:
        pop     ES                      ;
        retf
ISSLP EndP
MCODE   EndS
        End