C64: key repeat is now enabled at program startup, to fall in line with the default key repeat behavior on the C128 and X16.

This commit is contained in:
Irmen de Jong
2025-11-18 21:09:13 +01:00
parent 99e037489b
commit 6a6e18773e
2 changed files with 8 additions and 0 deletions

View File

@@ -1313,6 +1313,8 @@ asmsub init_system() {
lda #0 lda #0
sta c64.BGCOL0 sta c64.BGCOL0
jsr disable_runstop_and_charsetswitch jsr disable_runstop_and_charsetswitch
lda #$80
sta 650 ; enable key repeat for normal keys too
lda #PROG8_C64_BANK_CONFIG ; apply bank config lda #PROG8_C64_BANK_CONFIG ; apply bank config
sta $01 sta $01
and #1 and #1
@@ -1349,6 +1351,8 @@ asmsub cleanup_at_exit() {
jsr cbm.MEMTOP ; adjust MEMTOP down again jsr cbm.MEMTOP ; adjust MEMTOP down again
jsr cbm.CLRCHN ; reset i/o channels jsr cbm.CLRCHN ; reset i/o channels
jsr enable_runstop_and_charsetswitch jsr enable_runstop_and_charsetswitch
lda #0
sta 650 ; disable keyrepeats
lda _exitcarry lda _exitcarry
lsr a lsr a
lda _exitcode lda _exitcode

View File

@@ -200,3 +200,7 @@ If multiple options are listed above, you can select which one you want to launc
**Syntax highlighting:** for a few different editors, syntax highlighting definition files are provided. **Syntax highlighting:** for a few different editors, syntax highlighting definition files are provided.
Look in the :source:`syntax-files <syntax-files>` directory in the github repository to find them. Look in the :source:`syntax-files <syntax-files>` directory in the github repository to find them.
**CTags:** for editors that support them, such as Vim, there is an effort by a member of the cummunity to provide "ctags" files for Prog8.
The basic purpose of ctags is to index the definitions from your source code and let you find them easily.
It is not really to find each use of print for example, but to find where print is defined.
Visit `the Github repository <https://github.com/gillham/prog8ctags>`_ for the files and detailed usage information.