Post Reply 
Peter Platzer's "Many Digits of Pi" MCODE
03-04-2017, 07:39 AM (This post was last modified: 03-04-2017 01:10 PM by Ángel Martin.)
Post: #1
Peter Platzer's "Many Digits of Pi" MCODE
There were some folks interested in this subject back then when Peter posted it on the old forum (4915 digits of pi) that may still chime in here.

I put Peter's code in the attached MOD file but it's not working so far. The execution hangs and nothing is written in the Q-RAM page. It's probably a transcription error on my part so I'll keep debugging looking for the glitch(es).

Updated: the code seems to be working well now.

Input parameters expected in stack as follows:

; Z : p - page number of start of MLDL ram to use
; Y : n - number of digits wanted
; X : base b in powers of 10 (less than 5 )

What I'm not sure about is how to read the results, once they're obtained of course. The description mentions each word being split in two halves, with the lower nibble coded in HEX and the higher nibble in decimal... (?)

I was wondering if somehow I missed a follow-up to that article, with more details on that.

Code:
Each intermediate result (the a(i)’s) are stored in 2 MLDL words 
(left and right Nybble). The right Nybble is converted to hex 
as each word can store at most 399d but can store 3ffh(=4096d)

Cheers,
ÁM


Attached File(s)
.zip  PI_DIGITS.zip (Size: 8.37 KB / Downloads: 9)
Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
Peter Platzer's "Many Digits of Pi" MCODE - Ángel Martin - 03-04-2017 07:39 AM



User(s) browsing this thread: 1 Guest(s)