From 3b128ba59f6bfc943bfdc9a971daa00f612f1193 Mon Sep 17 00:00:00 2001
From: Oliver Schmidt
Date: Tue, 10 Sep 2019 09:49:06 +0200
Subject: [PATCH] Use MACHID to check for realtime clock.
There's no need to do guesswork to know if a realtime clock is present/active.
---
doc/apple2.sgml | 16 +++++++---------
doc/apple2enh.sgml | 16 +++++++---------
libsrc/apple2/getres.s | 8 ++++----
libsrc/apple2/settime.s | 8 ++++----
4 files changed, 22 insertions(+), 26 deletions(-)
diff --git a/doc/apple2.sgml b/doc/apple2.sgml
index 648ee56db..91c02c7ad 100644
--- a/doc/apple2.sgml
+++ b/doc/apple2.sgml
@@ -500,16 +500,14 @@ From that perspective it makes most sense to not set both the date and the time
rather only set the date and have the time just stay zero. Then files show up in a
directory as day_res
- ; Check for existing minutes or hours
- lda TIMELO
- ora TIMELO+1
- beq :+
+ ; Check for realtme clock
+ lda MACHID
+ lsr a
+ bcc :+
; Switch to minute resolution
ldx #