Difference between revisions of "83:ROMCalls:4014"

From WikiTI
Jump to: navigation, search
 
(Note key repeat.)
 
(One intermediate revision by one other user not shown)
Line 3: Line 3:
 
'''Official Name:''' GetCSC
 
'''Official Name:''' GetCSC
  
'''BCALL Address:''' 4014
+
'''Call Address:''' 4014
  
 
This routine returns the Current Scan Code into register A.
 
This routine returns the Current Scan Code into register A.
Line 11: Line 11:
  
 
=== Outputs ===
 
=== Outputs ===
* a = ([[83:RAM:8000|kbdScanCode]])
+
* A = ([[83:RAM:8000|kbdScanCode]])
 
* ([[83:RAM:8000|kbdScanCode]]) = 0
 
* ([[83:RAM:8000|kbdScanCode]]) = 0
 
* kbdSCR,(iy+[[83:Flags:00|kbdFlags]]) reset
 
* kbdSCR,(iy+[[83:Flags:00|kbdFlags]]) reset
* hl = [[83:RAM:8000|kbdScanCode]]
+
* HL = [[83:RAM:8000|kbdScanCode]]
* bc,de,f preserved
+
* BC,DE,F preserved
  
 
== Comments ==
 
== Comments ==
This routine expects that either interrupts are enabled or [[83:ROMCalls:4010|KbdScan]] was called manually. Either of these routines will check the keyboard and load the appropriate scan code into the memory location [[83:RAM:8000|kbdScanCode]] and set the flag kbdSCR,(iy+[[83:Flags:00|kbdFlags]]).
+
This routine expects that either interrupts are enabled or [[83:ROMCalls:4010|KbdScan]] was called manually. Either of these routines will check the keyboard and load the appropriate scan code into [[83:RAM:8000|kbdScanCode]] and set the flag kbdSCR,(iy+[[83:Flags:00|kbdFlags]]).
 +
 
 +
Arrow keys and DEL will repeat if held down, while others will not; see notes on [[83:ROMCalls:4010|KbdScan]].

Latest revision as of 18:32, 17 June 2020

Synopsis

Official Name: GetCSC

Call Address: 4014

This routine returns the Current Scan Code into register A.

Inputs

  • none

Outputs

Comments

This routine expects that either interrupts are enabled or KbdScan was called manually. Either of these routines will check the keyboard and load the appropriate scan code into kbdScanCode and set the flag kbdSCR,(iy+kbdFlags).

Arrow keys and DEL will repeat if held down, while others will not; see notes on KbdScan.