From a519d0c6194e0e5b0bb7338cc8942eab6977aed5 Mon Sep 17 00:00:00 2001 From: Joshua Bell Date: Mon, 3 Jul 2023 12:46:44 -0700 Subject: [PATCH] Cricket: Make SET.TIME/SET.DATETIME time inputs 24-hour by default The Cricket! can accept both 12-hour (with AM/PM suffix) and 24-hour times. Unify with the No-Slot Clock UI and prompt for 24-hour. --- clocks/cricket/set.datetime.s | 4 ++-- clocks/cricket/set.time.s | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/clocks/cricket/set.datetime.s b/clocks/cricket/set.datetime.s index 2ec591d..282ac0e 100644 --- a/clocks/cricket/set.datetime.s +++ b/clocks/cricket/set.datetime.s @@ -61,7 +61,7 @@ ;; Time jsr zstrout - scrcode "\rTime: HH:MM:SS XM\x08\x08\x08\x08\x08\x08\x08\x08\x08\x08\x08" + scrcode "\rTime: HH:MM:SS\x08\x08\x08\x08\x08\x08\x08\x08" .byte 0 jsr GETLN2 @@ -82,7 +82,7 @@ sta CONTROL ;; Clock Commands - ;; Set Time "ST HH:MM:SS:XM" + ;; Set Time "ST HH:MM:SS" lda #HI('S') jsr sendbyte lda #HI('T') diff --git a/clocks/cricket/set.time.s b/clocks/cricket/set.time.s index f2ca644..ebab120 100644 --- a/clocks/cricket/set.time.s +++ b/clocks/cricket/set.time.s @@ -16,7 +16,7 @@ .proc main jsr zstrout - scrcode "\rTime: HH:MM:SS XM\x08\x08\x08\x08\x08\x08\x08\x08\x08\x08\x08" + scrcode "\rTime: HH:MM:SS\x08\x08\x08\x08\x08\x08\x08\x08" .byte 0 jsr GETLN2 @@ -37,7 +37,7 @@ sta CONTROL ;; Clock Commands - ;; Set Time "ST HH:MM:SS:XM" + ;; Set Time "ST HH:MM:SS" lda #HI('S') jsr sendbyte lda #HI('T')