From ec4a0eeb1e6a59d5e8d46113b25e37f1f72cacad Mon Sep 17 00:00:00 2001 From: Joshua Bell Date: Sun, 25 Jun 2023 21:08:08 -0700 Subject: [PATCH] The Cricket!: Issue "Reset Cricket" sequence when detecting This stops any active music playback, which is handy if you did a warm boot in the middle of playback, and your The Cricket! is stuck playing the same note constantly but you don't want to power-cycle the device which will unset the RTC. c/o @frankmilliron --- clocks/cricket/cricket.system.s | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/clocks/cricket/cricket.system.s b/clocks/cricket/cricket.system.s index 9154912..9534960 100644 --- a/clocks/cricket/cricket.system.s +++ b/clocks/cricket/cricket.system.s @@ -90,6 +90,15 @@ init_ssc: lda #%10011110 ; 9600 baud, 8 data bits, 2 stop bits sta CONTROL + ;; Reset Cricket + jsr readbyte ; done on original disk + lda #HI(ASCII_CR) ; two carriage returns + jsr sendbyte + lda #HI(ASCII_CR) + jsr sendbyte + lda #HI('!') ; Reset Cricket (everything but time/date) + jsr sendbyte + ;; Read Cricket ID code: 00 ($00) lda #0 jsr sendbyte