Commit e8eb2eba authored by Robert Sprowson's avatar Robert Sprowson

Fix for num lock oddity at power on when configured off

The default OS_Byte value enabled num lock, but this was passed to the keyboard *before* a decision to wipe the CMOS (and hence potentially override it) was made.
This left the LED on until a key was pressed, regardless of the configured state.
Change the default OS_Byte value to be off so there's only one transition (off->on, or off->off), and refresh the keyboard after the validity of CMOS has been made.
Ref: https://www.riscosopen.org/forum/forums/4/topics/10400

Version 5.99. Tagged as 'Kernel-5_99'
parent 6435ec3d
......@@ -11,13 +11,13 @@
GBLS Module_HelpVersion
GBLS Module_ComponentName
GBLS Module_ComponentPath
Module_MajorVersion SETS "5.98"
Module_Version SETA 598
Module_MajorVersion SETS "5.99"
Module_Version SETA 599
Module_MinorVersion SETS ""
Module_Date SETS "21 Feb 2018"
Module_ApplicationDate SETS "21-Feb-18"
Module_Date SETS "25 Mar 2018"
Module_ApplicationDate SETS "25-Mar-18"
Module_ComponentName SETS "Kernel"
Module_ComponentPath SETS "castle/RiscOS/Sources/Kernel"
Module_FullVersion SETS "5.98"
Module_HelpVersion SETS "5.98 (21 Feb 2018)"
Module_FullVersion SETS "5.99"
Module_HelpVersion SETS "5.99 (25 Mar 2018)"
END
/* (5.98)
/* (5.99)
*
* This file is automatically maintained by srccommit, do not edit manually.
* Last processed by srccommit version: 1.1.
*
*/
#define Module_MajorVersion_CMHG 5.98
#define Module_MajorVersion_CMHG 5.99
#define Module_MinorVersion_CMHG
#define Module_Date_CMHG 21 Feb 2018
#define Module_Date_CMHG 25 Mar 2018
#define Module_MajorVersion "5.98"
#define Module_Version 598
#define Module_MajorVersion "5.99"
#define Module_Version 599
#define Module_MinorVersion ""
#define Module_Date "21 Feb 2018"
#define Module_Date "25 Mar 2018"
#define Module_ApplicationDate "21-Feb-18"
#define Module_ApplicationDate "25-Mar-18"
#define Module_ComponentName "Kernel"
#define Module_ComponentPath "castle/RiscOS/Sources/Kernel"
#define Module_FullVersion "5.98"
#define Module_HelpVersion "5.98 (21 Feb 2018)"
#define Module_LibraryVersionInfo "5:98"
#define Module_FullVersion "5.99"
#define Module_HelpVersion "5.99 (25 Mar 2018)"
#define Module_LibraryVersionInfo "5:99"
......@@ -275,6 +275,8 @@ ReadCMOSDefaults
ORRNE R1, R1, #KBStat_NoNumLock
BICEQ R1, R1, #KBStat_NoNumLock
STRB R1, KeyBdStatus
LDR R11, =ZeroPage+KeyWorkSpace
BL UpdateLEDs
MOV R0, #SystemSpeedCMOS
BL Read
......@@ -424,7 +426,7 @@ ByteVarInitTable
= &00 ; ESCBREAK # 1 ; &C8 (200)
;
= &00 ; KeyBdDisable # 1 ; &C9
= &30 ; KeyBdStatus # 1 ; &CA
= &34 ; KeyBdStatus # 1 ; &CA
;
= &11 ; RS423HandShake # 1 ; &CB
= &00 ; RS423InputSupr # 1 ; &CC
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment