On Fri, 2025-09-26 at 17:34 -0700, John Sandlin wrote:
> The program does one thing. Displays 400 digits of Pi. It's all the compiled version
> will ever do. And if it is compiled for only the Z80, that is all it will ever run on.
> The advantage of having the source and a C compiler is you can change the number of
> digits it can show (limited by memory, of course). Also, for someone like me, it was a
> chance to learn a little more about writing C on a retro computer and specifically on
> the RC2014 in this instance. Also, seeing the algorithm for calculating Pi is
> illuminating, not that I fully understand it yet. It might work on the ZAltair as
> compiled, or it might not. No guarantees.
>
> So we could post the compiled code and you get basically a once and done experience, if
> it works.
I agree. This is also about education, open-source philosophy, and security.
Here is a simple (as in not much code) example that does something interesting. Curious
people are looking at it and saying "How does that work ?" and then going on to learn
about the algorithm it uses. You can't do that with a .COM file.
It's called "open source" because it's the source code that is distributed. I would
imagine that many of the people on this list use at least some open-source, and some of us
use only open source. It promotes sharing of information and helping each other solve
problems.
If you run a .COM file from some random person on the internet you are taking a big risk.
It would be very easy to insert only a few bytes of code to do something nefarious to your
system. Do you still want to run a .COM file from me ? ;-)
PeterO
>