More BASIC ASCII Mandelbrots ...

Let's talk about anything related to the 6502 microprocessor.
whartung
Posts: 1004
Joined: 13 Dec 2003

Re: More BASIC ASCII Mandelbrots ...

Post by whartung »

It would be curious to be able to capture the actual results and compare the diagrams amongst the different systems, see what if any changes there are (most likely from the FP implementations).
User avatar
BillO
Posts: 1038
Joined: 12 Dec 2008
Location: Canada

Re: More BASIC ASCII Mandelbrots ...

Post by BillO »

drogon wrote:
Well - that's (presumably) ehBasic at 16Mhz...
Right!

What's the trick to porting BBC Basic?
Bill
User avatar
drogon
Posts: 1671
Joined: 14 Feb 2018
Location: Scotland
Contact:

Re: More BASIC ASCII Mandelbrots ...

Post by drogon »

BillO wrote:
drogon wrote:
Well - that's (presumably) ehBasic at 16Mhz...
Right!

What's the trick to porting BBC Basic?
That's easy - just write an Acorn compatible operating system....

Mines at 6K and growing. (Acorns was about 14K) However to make Basic work, you need the bare minimum - a BRK handler and 3 "OSBYTE" calls. Oh, then you need an OSWORD 0 handler (read line of text). Then .... Start here: http://mdfs.net/Software/BBCBasic/6502/ and ...

And ... er ... good luck getting out of that rabbit hole...

I have plans to open source my works at some point, but I need to do some tidying up and re-arranging of the code somewhat. I've also ran out of room, however that's only because I was looking at TaliForth's 24K executable, if I ignore that (which I probably will), then I have just under 16KB of operating system space. (Memory is $8000-BFFF: Language ROM, $C000 -> $FFFF: OS ROM - Ruby has hardware IO in $FE00-$FEFF and the top 128 bytes of $FF80 are the Ruby/Acorn OS Vector entry points.

Cheers,

-Gordon
--
Gordon Henderson.
See my Ruby 6502 and 65816 SBC projects here: https://projects.drogon.net/ruby/
User avatar
drogon
Posts: 1671
Joined: 14 Feb 2018
Location: Scotland
Contact:

Re: More BASIC ASCII Mandelbrots ...

Post by drogon »

whartung wrote:
It would be curious to be able to capture the actual results and compare the diagrams amongst the different systems, see what if any changes there are (most likely from the FP implementations).
That's very good point... And I've just checked - and They're identical. they may differ in deeper magnifications or with a greater number of "colours" in the pallet, but for the text version all come out the same.

-Gordon
--
Gordon Henderson.
See my Ruby 6502 and 65816 SBC projects here: https://projects.drogon.net/ruby/
User avatar
BitWise
In Memoriam
Posts: 996
Joined: 02 Mar 2004
Location: Berkshire, UK
Contact:

Re: More BASIC ASCII Mandelbrots ...

Post by BitWise »

drogon wrote:
That's easy - just write an Acorn compatible operating system....
This is MOS clone I wrote for my PIC24 6502 emulator. It contains a little more than the bare minimumm but not much more.

https://github.com/andrew-jacobs/em-ret ... os/mos.asm
Andrew Jacobs
6502 & PIC Stuff - http://www.obelisk.me.uk/
Cross-Platform 6502/65C02/65816 Macro Assembler - http://www.obelisk.me.uk/dev65/
Open Source Projects - https://github.com/andrew-jacobs
User avatar
emeb
Posts: 28
Joined: 08 Mar 2019

Re: More BASIC ASCII Mandelbrots ...

Post by emeb »

Thanks for the Mandelbrot code. I modified it to generate a 100x75 16-color version on my FPGA-based 6502 system
mandel.jpg
User avatar
BigEd
Posts: 11463
Joined: 11 Dec 2008
Location: England
Contact:

Re: More BASIC ASCII Mandelbrots ...

Post by BigEd »

Very nice!

One thing to watch out for in BBC Basic is that screen coordinates are not necessarily pixels. So, depending on the actual screen resolution, the X and Y increments might be by 2 or 4 units rather than 1. Get this wrong, and it all looks fine but runs much slower than necessary.
Post Reply