-
-
-
-/
-
-- The function is available only as a fastcall function; so, it may be used
-only in the presence of a prototype.
-
-
-[
-]
-
-
-kbrepeatrate
-
-
-
-/
-
-- The function is available only as a fastcall function; so, it may be used
-only in the presence of a prototype.
-
-
-[
]
diff --git a/include/cbm.h b/include/cbm.h
index c1762b1a9..a4b232406 100644
--- a/include/cbm.h
+++ b/include/cbm.h
@@ -158,17 +158,16 @@ struct cbm_dirent {
unsigned char get_tv (void);
/* Return the video mode the machine is using. */
-#define KBDREPEAT_CURSOR 0x00
-#define KBDREPEAT_NONE 0x40
-#define KBDREPEAT_ALL 0x80
+#define KBREPEAT_CURSOR 0x00
+#define KBREPEAT_NONE 0x40
+#define KBREPEAT_ALL 0x80
-unsigned char __fastcall__ kbrepeat(unsigned char);
-unsigned char __fastcall__ kbrepeatdelay(unsigned char);
-unsigned char __fastcall__ kbrepeatrate(unsigned char);
+unsigned char __fastcall__ kbrepeat (unsigned char mode);
+/* Changes which keys have automatic repeat. */
#if !defined(__CBM610__) && !defined(__PET__)
void waitvsync (void);
-/* wait for the start of the next frame */
+/* Wait for the start of the next frame */
#endif
/*****************************************************************************/
diff --git a/libsrc/c128/kbrepeat.s b/libsrc/c128/kbrepeat.s
index c32e8c017..4b9bc22af 100644
--- a/libsrc/c128/kbrepeat.s
+++ b/libsrc/c128/kbrepeat.s
@@ -1,5 +1,8 @@
+;
+; unsigned char __fastcall__ kbrepeat (unsigned char mode);
+;
- .export _kbrepeat, _kbrepeatdelay, _kbrepeatrate
+ .export _kbrepeat
.include "c128.inc"
@@ -7,16 +10,5 @@ _kbrepeat:
ldx KBDREPEAT ; get old value
sta KBDREPEAT ; store new value
txa ; return old value
- rts
-
-_kbrepeatdelay:
- ldx KBDREPEATDELAY ; get old value
- sta KBDREPEATDELAY ; store new value
- txa ; return old value
- rts
-
-_kbrepeatrate:
- ldx KBDREPEATRATE ; get old value
- sta KBDREPEATRATE ; store new value
- txa ; return old value
+ ldx #0
rts
diff --git a/libsrc/c64/kbrepeat.s b/libsrc/c64/kbrepeat.s
index f59c8a6da..0df13e58d 100644
--- a/libsrc/c64/kbrepeat.s
+++ b/libsrc/c64/kbrepeat.s
@@ -1,5 +1,8 @@
+;
+; unsigned char __fastcall__ kbrepeat (unsigned char mode);
+;
- .export _kbrepeat, _kbrepeatdelay, _kbrepeatrate
+ .export _kbrepeat
.include "c64.inc"
@@ -7,16 +10,5 @@ _kbrepeat:
ldx KBDREPEAT ; get old value
sta KBDREPEAT ; store new value
txa ; return old value
- rts
-
-_kbrepeatdelay:
- ldx KBDREPEATDELAY ; get old value
- sta KBDREPEATDELAY ; store new value
- txa ; return old value
- rts
-
-_kbrepeatrate:
- ldx KBDREPEATRATE ; get old value
- sta KBDREPEATRATE ; store new value
- txa ; return old value
+ ldx #0
rts
diff --git a/libsrc/pet/kbrepeat.s b/libsrc/pet/kbrepeat.s
index 0a29d7420..8299f5103 100644
--- a/libsrc/pet/kbrepeat.s
+++ b/libsrc/pet/kbrepeat.s
@@ -1,5 +1,8 @@
+;
+; unsigned char __fastcall__ kbrepeat (unsigned char mode);
+;
- .export _kbrepeat, _kbrepeatdelay, _kbrepeatrate
+ .export _kbrepeat
.include "pet.inc"
@@ -7,16 +10,5 @@ _kbrepeat:
ldx KBDREPEAT ; get old value
sta KBDREPEAT ; store new value
txa ; return old value
- rts
-
-_kbrepeatdelay:
- ldx KBDREPEATDELAY ; get old value
- sta KBDREPEATDELAY ; store new value
- txa ; return old value
- rts
-
-_kbrepeatrate:
- ldx KBDREPEATRATE ; get old value
- sta KBDREPEATRATE ; store new value
- txa ; return old value
+ ldx #0
rts
diff --git a/libsrc/plus4/kbrepeat.s b/libsrc/plus4/kbrepeat.s
index 927b99e5b..9c0dc6855 100644
--- a/libsrc/plus4/kbrepeat.s
+++ b/libsrc/plus4/kbrepeat.s
@@ -1,5 +1,8 @@
+;
+; unsigned char __fastcall__ kbrepeat (unsigned char mode);
+;
- .export _kbrepeat, _kbrepeatdelay, _kbrepeatrate
+ .export _kbrepeat
.include "plus4.inc"
@@ -7,16 +10,5 @@ _kbrepeat:
ldx KBDREPEAT ; get old value
sta KBDREPEAT ; store new value
txa ; return old value
- rts
-
-_kbrepeatdelay:
- ldx KBDREPEATDELAY ; get old value
- sta KBDREPEATDELAY ; store new value
- txa ; return old value
- rts
-
-_kbrepeatrate:
- ldx KBDREPEATRATE ; get old value
- sta KBDREPEATRATE ; store new value
- txa ; return old value
+ ldx #0
rts
diff --git a/libsrc/vic20/kbrepeat.s b/libsrc/vic20/kbrepeat.s
index 5115c852e..dce4949fb 100644
--- a/libsrc/vic20/kbrepeat.s
+++ b/libsrc/vic20/kbrepeat.s
@@ -1,5 +1,8 @@
+;
+; unsigned char __fastcall__ kbrepeat (unsigned char mode);
+;
- .export _kbrepeat, _kbrepeatdelay, _kbrepeatrate
+ .export _kbrepeat
.include "vic20.inc"
@@ -7,16 +10,5 @@ _kbrepeat:
ldx KBDREPEAT ; get old value
sta KBDREPEAT ; store new value
txa ; return old value
- rts
-
-_kbrepeatdelay:
- ldx KBDREPEATDELAY ; get old value
- sta KBDREPEATDELAY ; store new value
- txa ; return old value
- rts
-
-_kbrepeatrate:
- ldx KBDREPEATRATE ; get old value
- sta KBDREPEATRATE ; store new value
- txa ; return old value
+ ldx #0
rts
--
2.39.5