631-640
From C64-Wiki
Jump to navigationJump to searchAddresses 631-640 (Hex: $0277-$0280, name KEYD) is the keyboard buffer used by Commodore basic.
When a key is pressed, the new character is placed in memory at position 631+PEEK(198), then the content of address 198 was incremented to increase the size of the buffer.
When a key is retrieved from the buffer, the character at address 631 is read and handled. The other characters are then shifted onto the previous character, then the