Sound producing keyboard in just two lines of BASIC on the Commodore 64 (in ENG) @8bitretroprogramming
Sound producing keyboard in just two lines of BASIC on the Commodore 64 (in ENG)  @8bitretroprogramming
Uploaded June 2024 | Updated November 2026, 1 day ago
A BASIC two-liner on the Commodore 64, which enables a sound each time you press a key on the keyboard. Written in BASIC, the two lines store values in the memory and creates an IRQ driven routine.

The result is rather disappointing but the interesting thing about this two-liner is the process used through the instruction PRINT to write a short routine in machine language at $C031/49201. The screen RAM is indeed used to store values, which are 6502's opcodes modifying the values in the SID registers and the vector pointing to the interrupt handler $314/$315. This is something that might be obvious for experienced programmers, but not so much for beginners

#c64
#basic
#6502
#commodore64
Sound producing keyboard in just two lines of BASIC on the Commodore 64 (in ENG)Langage machine 6502 facile pour les nuls n°23, le choix de léditeur assembleurScrolling en LM et couleurs sur Commodore 64, Tuto 3Commodore 64, Hats off... Chapeau Commodore !Trigonométrie avec le KERNAL du Commodore 64Faisceau de balayage vidéo Raster sur le Commodore 64, 2e partieAméliorer un jeu en BASIC sur Commodore 64, 40 ans après !!!Exercices en assembleur et langage machine 6502 et 6510 n°2 - Valeurs signéesScrolling horizontal intégral en assembleur sur Commodore 64 (tuto en FR)112 Fun Moving Sprites on Commodore 6410 PRINT CHR$(205.5+RND(1)); : GOTO 10 - Assembly style, part1Tuto DIY Super ECM 8 couleurs sur Commodore 64... :-)
8-bit RetroProgramming |

Sound producing keyboard in just two lines of BASIC on the Commodore 64 (in ENG)

SHARE TO X SHARE TO REDDIT SHARE TO FACEBOOK WALLPAPER