Re: [M100] Yet Another Calendar Program...

2021-09-01 Thread Peter Noeth
I would consider the extra months just proper "error testing" remnants. Better than getting a "Subscript out of range" error if one typed the program in by hand and made some kind of typo, that resulted in a month other than March or April being designated. The invalid months could be removed and

Re: [M100] Yet Another Calendar Program...

2021-08-30 Thread Ken Pettit
Hey Peter, Yeah, BASIC seems to know standard arithmetic precedence. And now that I think about it, I guess I really didn't need to read in ALL of the months to M$ array ... I don't recall ever celebrating Easter in December :) Ken On 8/30/21 4:52 PM, Peter Noeth wrote: Thanks Ken for the

Re: [M100] Yet Another Calendar Program...

2021-08-30 Thread Peter Noeth
Thanks Ken for the update. In looking at this I was at first a little concerned about the arithmetic precedence on lines 70 to 85, as there were not a lot of parentheses to force desired action, but it works !! Good to have in the 'ole toolbox. Regards, Peter On 8/29/21 09:30 PM, Ken Pettit

Re: [M100] Yet Another Calendar Program...

2021-08-29 Thread Ken Pettit
Hey Guys, Well, the email I sent *wasn't* really a BASIC program but rather a math formula. The M100 BASIC doesn't have a function called "Floor" ... it is called "INT". But also I noticed the reference on Wikipedia that I was looking at was for Eastern Orthodox Easter date, not modern day

Re: [M100] Yet Another Calendar Program...

2021-08-29 Thread Joshua O'Keefe
> Ken, > > You have unbalanced parenthesis. Can you please correct? ?SN ERROR READY

Re: [M100] Yet Another Calendar Program...

2021-08-29 Thread Ken Pettit
Hey Peter, Yes, it's missing an open parenthesis just after the subtraction. Should be: D = (19*(Y mod 19) + 15) mod 30 + (2 * (Y mod 4) + 4 * (Y mod 7) - ((19*(Y mod 19) + 15) mod 30) + 34) mod 7 + 127 Ken On 8/29/21 5:28 PM, Peter Noeth wrote: Ken, You have unbalanced

Re: [M100] Yet Another Calendar Program...

2021-08-29 Thread Peter Noeth
Ken, You have unbalanced parenthesis. Can you please correct? Regards, Peter > Easter (according to Wikipedia): > > Y = Year > D = (19*(Y mod 19) + 15) mod 30 + (2 * (Y mod 4) + 4 * (Y mod 7) - > (19*(Y mod 19) + 15) mod 30) + 34) mod 7 + 127 > > Month = floor( D / 31) > Day = (D mod

Re: [M100] Yet Another Calendar Program...

2021-08-29 Thread Peter Noeth
The internet for "the common man" didn't exist then, I was working with this information from The Farmers Almanac: *Easter is observed on the Sunday following the Paschal Full Moon, which is the first full Moon that occurs on or after the March equinox*. It was determining the "Paschal Full

Re: [M100] Yet Another Calendar Program...

2021-08-28 Thread Ken Pettit
On 8/28/21 2:27 PM, Peter Noeth wrote: A printed wall calendar was one of my first TRS-80 16K Model 1 Level II (then a 48K with expansion Interface) programs after I designed an interface to the IBM Selectric I/O Writer I purchased as surplus where I was working at the time. I could never get

Re: [M100] Yet Another Calendar Program...

2021-08-28 Thread Peter Noeth
A printed wall calendar was one of my first TRS-80 16K Model 1 Level II (then a 48K with expansion Interface) programs after I designed an interface to the IBM Selectric I/O Writer I purchased as surplus where I was working at the time. I could never get the bizarre algorithm correct to calculate

Re: [M100] Yet Another Calendar Program...

2021-08-28 Thread John R. Hogerhuis
Socat is a Linux command line utility for connecting different streams together. So you would use it to connect wimodem232 tcp connections to a Epson printer emulator which would create jobs in the native Linux print subsystem. I've used socat extensively... I've never used any Linux Epson

Re: [M100] Yet Another Calendar Program...

2021-08-28 Thread Brad Grier
Heh, John, that one line: *You could rig up with a Pi, wimodem232 and a dot matrix printer emulator, and a socat script. * Lots of learning for me in that. Wimodem232 I get. Pi I get. The printer emulator and especially socat are new. Not sure what the workflow would be, but would be an

Re: [M100] Yet Another Calendar Program...

2021-08-28 Thread John R. Hogerhuis
On Sat, Aug 28, 2021, 6:41 AM Brad Grier wrote: > Good point Lloyd -- and how I'll likely proceed. Backpack is very cool and > a great interim solution. > > Would be neat if there was such a thing as an RS-232 -> WiFi printer > spooler that just sat on the RS-232 and sent print jobs to the local

Re: [M100] Yet Another Calendar Program...

2021-08-28 Thread Brad Grier
Good point Lloyd -- and how I'll likely proceed. Backpack is very cool and a great interim solution. Would be neat if there was such a thing as an RS-232 -> WiFi printer spooler that just sat on the RS-232 and sent print jobs to the local wifi printer. I did a quick search and couldn't see

Re: [M100] Yet Another Calendar Program...

2021-08-28 Thread Lloyd Johnson
, August 27, 2021 10:41 PM To: m...@bitchin100.com Subject: Re: [M100] Yet Another Calendar Program... Lloyd, your program looks great and makes me deeply regret blowing up the only continuous-feed printer I own with a rushed/botched repair attempt.

Re: [M100] Yet Another Calendar Program...

2021-08-27 Thread Joshua O'Keefe
Lloyd, your program looks great and makes me deeply regret blowing up the only continuous-feed printer I own with a rushed/botched repair attempt.

Re: [M100] Yet Another Calendar Program...

2021-08-27 Thread Lloyd Johnson
did the programming. Of if you have the backpack TPDD just specify a filename and then move it to the SD. Lloyd From: M100 On Behalf Of Brad Grier Sent: Friday, August 27, 2021 7:10 PM To: m...@bitchin100.com Subject: Re: [M100] Yet Another Calendar Program... This is great Lloyd! I

Re: [M100] Yet Another Calendar Program...

2021-08-27 Thread Brad Grier
This is great Lloyd! I don't have a printer hooked up to my 8201 (yet) but will add this to my NEC software collection. Thank you! --Brad On Fri, Aug 27, 2021 at 10:33 AM Lloyd Johnson wrote: > Hello Everyone, > > I wrote yet another calendar program for the TRS-80 Model 100 and NEC >

Re: [M100] Yet Another Calendar Program... becoming a bit OT though

2021-08-27 Thread Ken Pettit
Message- From: M100 On Behalf Of Ken Pettit Sent: Friday, August 27, 2021 1:09 PM To: m100@lists.bitchin100.com Subject: Re: [M100] Yet Another Calendar Program... Hi Lloyd, Sweet! I like the calendar you printed with a picture of yourself! At work when designing (well actually simulating

Re: [M100] Yet Another Calendar Program...

2021-08-27 Thread Lloyd Johnson
, 2021 1:09 PM To: m100@lists.bitchin100.com Subject: Re: [M100] Yet Another Calendar Program... Hi Lloyd, Sweet! I like the calendar you printed with a picture of yourself! At work when designing (well actually simulating) the chips I design, I gobble up almost all of 512G bytes of RAM. Amazing

Re: [M100] Yet Another Calendar Program...

2021-08-27 Thread Ken Pettit
Hi Lloyd, Sweet! I like the calendar you printed with a picture of yourself! At work when designing (well actually simulating) the chips I design, I gobble up almost all of 512G bytes of RAM. Amazing to think we can still get by with 32K for some tasks. :) Ken On 8/27/21 9:33 AM, Lloyd

[M100] Yet Another Calendar Program...

2021-08-27 Thread Lloyd Johnson
Hello Everyone, I wrote yet another calendar program for the TRS-80 Model 100 and NEC PC-8201A. I call it YACalP.ba. You can find this program along with a pdf file containing the documentation I wrote for this program at https://github.com/LEJ-Projects/Yet-Another-Calendar-Program I hope