A program for today

Programming the 6502 microprocessor and its relatives in assembly and other languages.
User avatar
BigDumbDinosaur
Posts: 9428
Joined: 28 May 2009
Location: Midwestern USA (JB Pritzker’s dystopia)
Contact:

Re: A program for today

Post by BigDumbDinosaur »

Did anyone notice that yesterday was pi day? I celebrated by having a slice of pie after dinner. :D
x86?  We ain't got no x86.  We don't NEED no stinking x86!
calculi
Posts: 68
Joined: 19 Oct 2015
Location: France

Re: A program for today

Post by calculi »

Yes ;-)
I celebrated by launching a computation of digits of Pi, on my (homemade 65C02-based) desktop calculator -still going strong after more than 3000 hours of service.
User avatar
BigEd
Posts: 11464
Joined: 11 Dec 2008
Location: England
Contact:

Re: A program for today

Post by BigEd »

Oh, that's good - how many digits did you do?
There's a nice related thread over at viewtopic.php?f=2&t=2239
calculi
Posts: 68
Joined: 19 Oct 2015
Location: France

Re: A program for today

Post by calculi »

I launched a 5,000-digit computation, with a program which I'm almost sure isn't the best one in terms of speed. I found it here* :
http://serge.mehl.free.fr/anx/pi1000_basic.html (computation of digits of e is on the same site)
and translated it for my RPN machine. It will run for approximately 80 hours. My machine's average execution rate is around 2,000 RPN instructions per second, when using only simple arithmetic. The longest computation I could launch is 13,930 digits, for an estimated duration of 28 days. (already did a successful 16-day computation of 15,928 digits of e)

I had noticed the thread you mention, I archived the documents for a later study :-)

*last year I ran the e computation on EhBASIC, when my calculator firmware still didn't exist : 30,000 digits in 2 months (1-MHz clock rate, compared to the current 6-MHz one).
User avatar
BigEd
Posts: 11464
Joined: 11 Dec 2008
Location: England
Contact:

Re: A program for today

Post by BigEd »

This sounds very good - perhaps you could start a new thread? With a photo??
calculi
Posts: 68
Joined: 19 Oct 2015
Location: France

Re: A program for today

Post by calculi »

Thank you BigEd,

...but my machine isn't photogenic at all, it's rather an "Emmett Brown's" prototype ! I didn't have time to custom-build a case (used a very basic Teko one) neither did I find the keys I'd like to use. For more than a year I've been looking for a keyboard with big keys, and translucent keycaps like the ones used some years ago on cash registers. No way... Instead I used 2 20-key Grayhill keypads. (looks like a "double-Digicode" !!) I focused much more on software and performance.

Anyway, since you find it interesting (thanks again) I'll take some time to write a little technical description, with some photos ;-) which I'll post within one or two days.

BTW : should I post that in the "hardware" or "programming" section ? I'd think the latter will be more pertinent, but I may be wrong.
User avatar
BigEd
Posts: 11464
Joined: 11 Dec 2008
Location: England
Contact:

Re: A program for today

Post by BigEd »

(Replied by PM)

Edit: see this thread for the photogenic verdict:
viewtopic.php?f=2&t=3639
Last edited by BigEd on Sun Jul 17, 2016 2:27 pm, edited 1 time in total.
User avatar
BigDumbDinosaur
Posts: 9428
Joined: 28 May 2009
Location: Midwestern USA (JB Pritzker’s dystopia)
Contact:

Re: A program for today

Post by BigDumbDinosaur »

calculi wrote:
Yes ;-)
I celebrated by launching a computation of digits of Pi, on my (homemade 65C02-based) desktop calculator -still going strong after more than 3000 hours of service.
At first I thought you meant the computation had taken 3000 hours. :shock:
x86?  We ain't got no x86.  We don't NEED no stinking x86!
litwr
Posts: 188
Joined: 09 Jul 2016

Re: A program for today

Post by litwr »

Is it worth to make 6502 entry in https://rosettacode.org/wiki/Pi?
Post Reply