Difference between revisions of "OSBYTE &76"

From BeebWiki
Jump to: navigation, search
m (1 revision)
m (Updated return values.)
 
Line 2: Line 2:
 
OSBYTE &76 (118) - Reflect keyboard status in LEDs
 
OSBYTE &76 (118) - Reflect keyboard status in LEDs
  
     If the keyboard status byte (CAPs lock etc...) is written to with
+
     This calls [[KEYV]] to update the keyboard LEDs. If the keyboard
     OSByte 202 then the LEDs should be updated by using this call. Under
+
    status byte (CAPs lock etc...) is written to with [[OSBYTE &CA|OSBYTE 202]] then
     normal circumstances the LEDs look after themselves
+
     the LEDs should be updated by using this call. Under normal
    (Acorn MOS 2.00 only)
+
     circumstances the LEDs look after themselves.
     Read ctrl/Shift keys
+
      
     Returns with processor status C=1=CTRL key pressed
+
     On exit:  X.b7=CTRL key pressed
                                  N=1=SHIFT key pressed
+
    Note that other documentation state that this call returns the state
 +
    of the SHIFT key. This is incorrect.
  
 
==See Also==
 
==See Also==
Line 14: Line 15:
  
 
[[User:Jgharston|Jgharston]] 21:53, 26 May 2009 (UTC)
 
[[User:Jgharston|Jgharston]] 21:53, 26 May 2009 (UTC)
 +
[[User:Jgharston|Jgharston]] ([[User talk:Jgharston|talk]]) 00:53, 23 September 2019 (CEST)

Latest revision as of 23:53, 22 September 2019

OSBYTE &76 (118) - Reflect keyboard status in LEDs

   This calls KEYV to update the keyboard LEDs. If the keyboard
   status byte (CAPs lock etc...) is written to with OSBYTE 202 then
   the LEDs should be updated by using this call. Under normal
   circumstances the LEDs look after themselves.
   
   On exit:  X.b7=CTRL key pressed
   Note that other documentation state that this call returns the state
   of the SHIFT key. This is incorrect.

See Also

Jgharston 21:53, 26 May 2009 (UTC) Jgharston (talk) 00:53, 23 September 2019 (CEST)