;Copyright 2000 - Mark McDonald All rights reserved ; DECLARE: FUNCTION isnlp() AS INTEGER ; DESC: Returns true if the Num Lock key is depressed. ; EXAMP: IF isnlp THEN GOTO ... MCODE Segment Byte Assume CS: MCODE Public isnlp isnlp Proc Far push ES ; xor AX,AX ; clear AX mov ES,AX ; set ES to BIOS data segment test Byte Ptr ES: [418h],32 ; is Num Lock key depressed? jz Exit ; no, exit inc AX ; return true (1) Exit: pop ES ; retf isnlp EndP MCODE EndS End