Using your HP-65 as a clock! Message #1 Posted by Don Shepherd on 6 Oct 2013, 7:30 p.m.
When I obtained an HP-65 years ago, it came with a user program card called "set time hh.mmss". I always wondered what this did exactly, and I finally got around to actually running it and discovered that it causes the HP-65 to display the time of day, based upon your hh.mmss input via the A function key. It updates about every 5 seconds and runs until you stop it. The time display looks like this, assuming it is 06:22:13
88.062213 0.0.
I don't know how they got the extra periods in there, but it does seem to keep reasonably accurate time.
This is the code. You load the program, enter the current hh.mmss and press the A function key.
Pretty cool.
lbl a
sto 1
745
eex 3
sto 2
eex 16
sto 3
1.0002
sto 8
dsz
rcl 1
lbl b
rcl 2
+
rcl 3
x
rcl 8
/
13
rcl 1
5 eex
chs
4
d.ms+
x=y
1
nop
sto 1
goto b
lbl a
I would welcome comments on exactly how this code works, it is a bit beyond my understanding.
Edited: 7 Oct 2013, 5:00 p.m. after one or more responses were posted
|