Skip to navigation


Keyboard: DKS4

[Commodore 64 version]

Name: DKS4 [Show more] Type: Subroutine Category: Keyboard Summary: Scan the keyboard to see if a specific key is being pressed Deep dive: The key logger
Context: See this subroutine in context in the source code References: No direct references to this subroutine in this source file

Arguments: X The internal number of the key to check
Returns: A $FF if the key is being pressed, 0 otherwise X Contains the same as A
.DKS4 LDA KEYLOOK,X ; Fetch the entry from the key logger for the key in X TAX ; Copy A to X RTS ; Return from the subroutine