EEVblog Electronics Community Forum

Products => Computers => Programming => Topic started by: techman-001 on February 26, 2021, 10:29:13 am

Title: The Pico RP2040 Mandlebrot challenge!
Post by: techman-001 on February 26, 2021, 10:29:13 am
Can you beat Matthias's Mandlebrot binary of 252 Bytes ?

[attachimg=1]

See this URL for the details and complete project including the Assembly source.

https://mecrisp-stellaris-folkdoc.sourceforge.io/rpi-pico.html#the-pico-mandlebrot-challenge (https://mecrisp-stellaris-folkdoc.sourceforge.io/rpi-pico.html#the-pico-mandlebrot-challenge)
Title: Re: The Pico RP2040 Mandlebrot challenge!
Post by: SiliconWizard on February 26, 2021, 11:21:19 pm
Well, there is an assembly source, but no Forth source code to be seen? Isn't mecrisp stuff meant to be Forth?
I would have been curious to take a look at the Forth code for this.
Title: Re: The Pico RP2040 Mandlebrot challenge!
Post by: techman-001 on February 27, 2021, 01:58:20 am
Well, there is an assembly source, but no Forth source code to be seen? Isn't mecrisp stuff meant to be Forth?
I would have been curious to take a look at the Forth code for this.

The Mecrisp-Stellaris architect wrote the Mandlebrot challenge in Assembly as his aim was minimal binary size.

Mecrisp-Stellaris is 100% Assembly itself and its users are conversant in both languages.
Title: Re: The Pico RP2040 Mandlebrot challenge!
Post by: hamster_nz on February 27, 2021, 04:40:11 am
Worth squirreling away for the H/W setup code alone... (which is about 2/3rds of the projects ~300 lines). 
Title: Re: The Pico RP2040 Mandlebrot challenge!
Post by: techman-001 on February 27, 2021, 06:02:59 am
Worth squirreling away for the H/W setup code alone... (which is about 2/3rds of the projects ~300 lines).

Plus the toolset is all GPL'd, (like everything Mecrisp*).
Title: Re: The Pico RP2040 Mandlebrot challenge! * New Release.
Post by: techman-001 on February 28, 2021, 08:48:11 pm
New Release @ 1 March 2021.

Prints a Mandlebrot to a serial terminal and has a breathing LED effect while waiting for keypress, all in a 252 Byte binary!

Also includes a lot of extra information including emulator, fully commented assembly source and proof of concept files.

Same URL: https://sourceforge.net/projects/mecrisp-stellaris-folkdoc/files/mandelboot.tar.gz (https://sourceforge.net/projects/mecrisp-stellaris-folkdoc/files/mandelboot.tar.gz)
Title: Re: The Pico RP2040 Mandlebrot challenge!
Post by: techman-001 on March 04, 2021, 04:18:52 am
New Release @ 4 Mar 2021.

Now with Mandlebrot and Tricorn Set plus a breathing LED cosine effect while waiting for keypress.

 Still in a 252 Bytes binary executable for the Pico.

https://mecrisp-stellaris-folkdoc.sourceforge.io/rpi-pico.html#the-pico-mandlebrot-challenge