Skip to content

Commit

Permalink
Cricket: Make SET.TIME/SET.DATETIME time inputs 24-hour by default
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
inexorabletash committed Jul 17, 2023
1 parent b182a53 commit a519d0c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions clocks/cricket/set.datetime.s
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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')
Expand Down
4 changes: 2 additions & 2 deletions clocks/cricket/set.time.s
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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')
Expand Down

0 comments on commit a519d0c

Please sign in to comment.