41C sunrise/sunset program listing: what are these strange "dot" steps?
|
05-23-2020, 01:01 AM
Post: #1
|
|||
|
|||
41C sunrise/sunset program listing: what are these strange "dot" steps?
I was looking at this sunrise/sunset program, and quite a few of the steps are just a mysterious dot character: •
https://www.hpmuseum.org/cgi-sys/cgiwrap...?read=1131 It doesn't look like a decimal point used elsewhere in the listing, but is that all it is? And if so, what's the significance of using a lone decimal point instead of 0? |
|||
05-23-2020, 03:23 AM
Post: #2
|
|||
|
|||
RE: 41C sunrise/sunset program listing: what are these strange "dot" steps?
(05-23-2020 01:01 AM)Dave Britten Wrote: It doesn't look like a decimal point used elsewhere in the listing, but is that all it is? And if so, what's the significance of using a lone decimal point instead of 0? It executes faster then entering 0. Although this is not synthetic (you just type [.]) it is similar to using E instead of 1 (this is synthetic). They both simply execute faster in a program. --Bob Prosperi |
|||
05-23-2020, 03:26 AM
Post: #3
|
|||
|
|||
RE: 41C sunrise/sunset program listing: what are these strange "dot" steps?
Looking at the DOY routine, the dot in line 8 has to be a minus in order for the code to make sense. However, line 11 should be FS? 31, not FS? 01. And how would a minus get turned into a dot while there are normal minuses elsewhere in these listings? I don't think I'd trust this code...
|
|||
05-23-2020, 10:59 AM
Post: #4
|
|||
|
|||
RE: 41C sunrise/sunset program listing: what are these strange "dot" steps?
It looks like a bug in whatever tool was originally used to transfer or convert the HP-41C programs. All minus commands were turned into 0x95 (Windows-1252 bullet), while all other minuses were left alone (numbers, strings, HMS- commands). Maybe they were supposed to be rendered as 0x96 (en dash).
|
|||
05-23-2020, 12:03 PM
Post: #5
|
|||
|
|||
RE: 41C sunrise/sunset program listing: what are these strange "dot" steps?
(05-23-2020 10:59 AM)Thomas Okken Wrote: It looks like a bug in whatever tool was originally used to transfer or convert the HP-41C programs. All minus commands were turned into 0x95 (Windows-1252 bullet), while all other minuses were left alone (numbers, strings, HMS- commands). Maybe they were supposed to be rendered as 0x96 (en dash). I was starting to wonder if it was some kind of text-encoding mishap. I tried all the supported encodings in Firefox, and none of them seem to change the bullet to a minus, so I can't imagine what happened there. The 33S/35S programs on that page look fishy too. There are a bunch of occurrences of "1." that look like they're supposed to be a subtraction operation. |
|||
05-23-2020, 04:28 PM
Post: #6
|
|||
|
|||
RE: 41C sunrise/sunset program listing: what are these strange "dot" steps?
For the SUN program, line 32 should also be "FS? 00".
After all of the corrections that have been mentioned, it runs correctly. Does anyone know of the corrections to be applied based on altitude above mean sea level? |
|||
« Next Oldest | Next Newest »
|
User(s) browsing this thread: 2 Guest(s)