From 56a9b9b18780f902b38ba813e74f096420169266 Mon Sep 17 00:00:00 2001 From: Bobbi Webber-Manners Date: Wed, 5 Aug 2020 00:58:30 -0400 Subject: [PATCH] EDIT: Corrected beep() sound to be more reasonable --- apps/edit.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/apps/edit.c b/apps/edit.c index 90a1d9a..4aaa026 100644 --- a/apps/edit.c +++ b/apps/edit.c @@ -5,7 +5,6 @@ // Note: Use my fork of cc65 to get a flashing cursor!! -// TODO: Adjust beep() sound // TODO: Make use of aux mem #include @@ -86,9 +85,9 @@ void beep(void) { uint8_t *p = (uint8_t*)0xc030; // Speaker uint8_t junk; uint16_t i; - for (i = 0; i < 1000; ++i) { + for (i = 0; i < 200; ++i) { junk = *p; - for (junk = 0; junk < 10; ++junk); // Reduce pitch + for (junk = 0; junk < 50; ++junk); // Reduce pitch } }