mirror of
https://github.com/a2stuff/prodos-drivers.git
synced 2024-06-07 20:29:33 +00:00
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.
This commit is contained in:
parent
b182a53dfa
commit
a519d0c619
|
@ -61,7 +61,7 @@
|
||||||
;; Time
|
;; Time
|
||||||
|
|
||||||
jsr zstrout
|
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
|
.byte 0
|
||||||
|
|
||||||
jsr GETLN2
|
jsr GETLN2
|
||||||
|
@ -82,7 +82,7 @@
|
||||||
sta CONTROL
|
sta CONTROL
|
||||||
|
|
||||||
;; Clock Commands
|
;; Clock Commands
|
||||||
;; Set Time "ST HH:MM:SS:XM"
|
;; Set Time "ST HH:MM:SS"
|
||||||
lda #HI('S')
|
lda #HI('S')
|
||||||
jsr sendbyte
|
jsr sendbyte
|
||||||
lda #HI('T')
|
lda #HI('T')
|
||||||
|
|
|
@ -16,7 +16,7 @@
|
||||||
|
|
||||||
.proc main
|
.proc main
|
||||||
jsr zstrout
|
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
|
.byte 0
|
||||||
|
|
||||||
jsr GETLN2
|
jsr GETLN2
|
||||||
|
@ -37,7 +37,7 @@
|
||||||
sta CONTROL
|
sta CONTROL
|
||||||
|
|
||||||
;; Clock Commands
|
;; Clock Commands
|
||||||
;; Set Time "ST HH:MM:SS:XM"
|
;; Set Time "ST HH:MM:SS"
|
||||||
lda #HI('S')
|
lda #HI('S')
|
||||||
jsr sendbyte
|
jsr sendbyte
|
||||||
lda #HI('T')
|
lda #HI('T')
|
||||||
|
|
Loading…
Reference in New Issue
Block a user