9 comments

[ 4.1 ms ] story [ 31.3 ms ] thread
The link to the c code it is based on is down but the archive is:

https://web.archive.org/web/20210518022312/http://www.codeco...

Not sure I understand how that's calculating Pi though.

I think it is the Spigot algorithm for Pi

https://www.gavalas.dev/blog/spigot-algorithms-for-pi-in-pyt...

If you enjoy Pi stuff then I'd recommend the Pi Unleashed book

https://link.springer.com/book/10.1007/978-3-642-56735-3

Which has this algorithm and many more!

That first link deserves its own submission. Very interesting read
If this works on an 8088, booting directly from the boot sector, how far are we to compiling it for a Game Boy (an 8080-like) cartridge?