diff --git a/asminc/c128.inc b/asminc/c128.inc index e6c89b07b..9e9acc5a8 100644 --- a/asminc/c128.inc +++ b/asminc/c128.inc @@ -38,6 +38,10 @@ INIT_STATUS := $A04 ; Flags: Reset/Restore initiation status FKEY_LEN := $1000 ; Function key lengths FKEY_TEXT := $100A ; Function key texts +KBDREPEAT := $28a +KBDREPEATRATE := $28b +KBDREPEATDELAY := $28c + ; --------------------------------------------------------------------------- ; Kernal routines diff --git a/asminc/c64.inc b/asminc/c64.inc index ababb1ea0..00b66a64f 100644 --- a/asminc/c64.inc +++ b/asminc/c64.inc @@ -33,6 +33,9 @@ CHARCOLOR := $286 CURS_COLOR := $287 ; Color under the cursor PALFLAG := $2A6 ; $01 = PAL, $00 = NTSC +KBDREPEAT := $28a +KBDREPEATRATE := $28b +KBDREPEATDELAY := $28c ; --------------------------------------------------------------------------- ; Kernal routines diff --git a/asminc/pet.inc b/asminc/pet.inc index a745a89c8..8f2f469e0 100644 --- a/asminc/pet.inc +++ b/asminc/pet.inc @@ -31,6 +31,18 @@ BASIC_BUF_LEN = 81 ; Maximum length of command-line KEY_BUF := $26F ; Keyboard buffer +;FIXME: we must somehow handle the difference between the two - how? + +; 40-Column PETs +;KBDREPEAT := $3ee +;KBDREPEATRATE := $3ea +;KBDREPEATDELAY := $3e9 + +; 80-Column PETs +KBDREPEAT := $e4 +KBDREPEATRATE := $e5 +KBDREPEATDELAY := $e6 + ;---------------------------------------------------------------------------- ; PET ROM type detection diff --git a/asminc/plus4.inc b/asminc/plus4.inc index 69b2298a3..3b2f08c54 100644 --- a/asminc/plus4.inc +++ b/asminc/plus4.inc @@ -33,6 +33,10 @@ FKEY_COUNT := $55D ; Characters for function key FKEY_SPACE := $55F ; Function key definitions FKEY_ORIG := $F3D2 ; Original definitions +KBDREPEAT := $540 +KBDREPEATRATE := $541 +KBDREPEATDELAY := $542 + ; --------------------------------------------------------------------------- ; Kernal routines diff --git a/asminc/vic20.inc b/asminc/vic20.inc index 12424dc11..d882eb1ad 100644 --- a/asminc/vic20.inc +++ b/asminc/vic20.inc @@ -31,6 +31,9 @@ BASIC_BUF_LEN = 89 ; Maximum length of command-line CHARCOLOR := $286 CURS_COLOR := $287 ; Color under the cursor +KBDREPEAT := $28a +KBDREPEATRATE := $28b +KBDREPEATDELAY := $28c ; --------------------------------------------------------------------------- ; Screen size diff --git a/doc/funcref.sgml b/doc/funcref.sgml index 14113cbab..f866dea5f 100644 --- a/doc/funcref.sgml +++ b/doc/funcref.sgml @@ -183,6 +183,9 @@ function. + + + (incomplete) @@ -2165,6 +2168,73 @@ to get off the serial bus so it can be used for other purposes. +kbrepeat