I just tried the ASCII Mandelbrot BASIC example from the RC2014 Gitgub repo and it works unmodified in EhBasic. Here's a link:
https://github.com/RC2014Z80/RC2014-BAS ... brot/Ascii
I plan to time it on my 1 MHz 65c02 and compare it to my Forth version.
RC2014 ASCII Mandelbrot BASIC Example Runs in EhBasic
RC2014 ASCII Mandelbrot BASIC Example Runs in EhBasic
Last edited by Martin_H on Thu Dec 29, 2016 3:25 pm, edited 1 time in total.
- BigDumbDinosaur
- Posts: 9425
- Joined: 28 May 2009
- Location: Midwestern USA (JB Pritzker’s dystopia)
- Contact:
Re: RC2014 ASCII Mandlebrot BASIC Example Runs in EhBasic
Martin_H wrote:
I just tried the ASCII Mandlebrot BASIC example from the RC2014 Gitgub repo and it works unmodified in EhBasic. Here's a link:
https://github.com/RC2014Z80/RC2014-BAS ... brot/Ascii
I plan to time it on my 1 MHz 65c02 and compare it to my Forth version.
https://github.com/RC2014Z80/RC2014-BAS ... brot/Ascii
I plan to time it on my 1 MHz 65c02 and compare it to my Forth version.
x86? We ain't got no x86. We don't NEED no stinking x86!
Re: RC2014 ASCII Mandlebrot BASIC Example Runs in EhBasic
The elapsed execution time was 21 minutes 48 seconds and produced this output:
Code: Select all
...............................,,,,,,,,,,,,,,,,,...............................
...........................,,,,,,,,,,,,,,,,,,,,,,,,,...........................
........................,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,........................
......................,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,......................
....................,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,....................
..................,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,~~..................
.................,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,';~~'.................
................,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,'~~~''~................
..............,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,'~~~''~',,..............
.............,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,'~~~~''~',,,,.............
............,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,'^~~~''~',,,,,,............
...........,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,'!~~~''!'',,,,,,,...........
..........,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,'~!~~!'';'',,,,,,,,,..........
.........''',,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,''^!~~:~~^!',,,,,,,,,,,.........
........''''',,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,'~:!~~^~~!^'',,,,,,,,,,,,........
........''''''',,,,,,,,,,,,,,,,,,,,,,,,,,,,,'':!!~~^~~^!'',,,,,,,,,,,,,........
.......!^~''''''',,,,,,,,,,,,,,,,,,,,,,,,,''~[!!~!;~~^!'',,,,,,,,,,,,,,,.......
......''!:~''''''''',,,,,,,,,,,,,,,,,,,'''~//!!!!:~~^:~'',,,,,,,,,,,,,,,,......
.....'''^!:~~'''''''''',,,,,,,,,,,,,''''~<;^!!!;:~~^!;'',,,,,,,,,,,,,,,,,,.....
.....''''^!:~~~''''''''''''''''''''''~~ : :!!!#:!~;!:''',,,,,,,,,,,,,,,,,,.....
....''''''^![!~~~~'''''''''''''''~~~~?[ &&::;/:^!:O!~'',,,,,,,,,,,,,,,,,,,,....
....''''''';![!~~~~~~~~~~~~~~~~~~~~/x ?; /:/ &''',,,,,,,,,,,,,,,,,,,,....
...,'''''''':![^~~~~~~~~~~~~~~~~! O < :?<[~''',,,,,,,,,,,,,,,,,,,,,...
...,''''''''<:!<^!~~~~~~~~~~~~!: [x?X^ '''',,,,,,,,,,,,,,,,,,,,,...
..,,,''''''''<:!?^!~~~~~~~~~!^; /[&''',,,,,,,,,,,,,,,,,,,,,,,..
..,,,''''''''<::!?;^!!~~~~!!^^ /:^''',,,,,,,,,,,,,,,,,,,,,,,..
..,,,''''''''':::! /^^^!!!^^^[ [:;''',,,,,,,,,,,,,,,,,,,,,,,..
.,,,''''''''''!: :: ?;^^^^^:/ : ~''',,,,,,,,,,,,,,,,,,,,,,,.
.,,,''''''''''!x[ :/<<[;;;;& : ~'',,,,,,,,,,,,,,,,,,,,,,,.
.,,,'''''''''''< <?<//& <^</!,,,,,,,,,,,,,,,,,,,,,,,.
.,,'''''''''''!: xxOx [ :^!,,,,,,,,,,,,,,,,,,,,,,.
,,,'''''''''''![ &:!~,,,,,,,,,,,,,,,,,,,,,,,
,,'''''''''''~! [ ~~''',,,,,,,,,,,,,,,,,,,,,,
,,''''''''''~!! X/~~'''',,,,,,,,,,,,,,,,,,,,,,
,~~~~~~'~~~~!! ~'''''',,,,,,,,,,,,,,,,,,,,,
,~^~~~~~~~!!! '''''',,,,,,,,,,,,,,,,,,,,,
~~~&^~~~!!!!? &!!''''''',,,,,,,,,,,,,,,,,,,,
~~~^:^^!!!:< <~~''''''',,,,,,,,,,,,,,,,,,,,
!![^&:;;::? [!!~~~'''''',,,,,,,,,,,,,,,,,,,,
&;:^!~~~''''''',,,,,,,,,,,,,,,,,,,
!![^&:;;::? [!!~~~'''''',,,,,,,,,,,,,,,,,,,,
~~~^:^^!!!:< <~~''''''',,,,,,,,,,,,,,,,,,,,
~~~&^~~~!!!!? &!!''''''',,,,,,,,,,,,,,,,,,,,
,~^~~~~~~~!!! '''''',,,,,,,,,,,,,,,,,,,,,
,~~~~~~'~~~~!! ~'''''',,,,,,,,,,,,,,,,,,,,,
,,''''''''''~!! X/~~'''',,,,,,,,,,,,,,,,,,,,,,
,,'''''''''''~! [ ~~''',,,,,,,,,,,,,,,,,,,,,,
,,,'''''''''''![ &:!~,,,,,,,,,,,,,,,,,,,,,,,
.,,'''''''''''!: xxOx [ :^!,,,,,,,,,,,,,,,,,,,,,,.
.,,,'''''''''''< <?<//& <^</!,,,,,,,,,,,,,,,,,,,,,,,.
.,,,''''''''''!x[ :/<<[;;;;& : ~'',,,,,,,,,,,,,,,,,,,,,,,.
.,,,''''''''''!: :: ?;^^^^^:/ : ~''',,,,,,,,,,,,,,,,,,,,,,,.
..,,,''''''''':::! /^^^!!!^^^[ [:;''',,,,,,,,,,,,,,,,,,,,,,,..
..,,,''''''''<::!?;^!!~~~~!!^^ /:^''',,,,,,,,,,,,,,,,,,,,,,,..
..,,,''''''''<:!?^!~~~~~~~~~!^; /[&''',,,,,,,,,,,,,,,,,,,,,,,..
...,''''''''<:!<^!~~~~~~~~~~~~!: [x?X^ '''',,,,,,,,,,,,,,,,,,,,,...
...,'''''''':![^~~~~~~~~~~~~~~~~! O < :?<[~''',,,,,,,,,,,,,,,,,,,,,...
....''''''';![!~~~~~~~~~~~~~~~~~~~~/x ?; /:/ &''',,,,,,,,,,,,,,,,,,,,....
....''''''^![!~~~~'''''''''''''''~~~~?[ &&::;/:^!:O!~'',,,,,,,,,,,,,,,,,,,,....
.....''''^!:~~~''''''''''''''''''''''~~ : :!!!#:!~;!:''',,,,,,,,,,,,,,,,,,.....
.....'''^!:~~'''''''''',,,,,,,,,,,,,''''~<;^!!!;:~~^!;'',,,,,,,,,,,,,,,,,,.....
......''!:~''''''''',,,,,,,,,,,,,,,,,,,'''~//!!!!:~~^:~'',,,,,,,,,,,,,,,,......
.......!^~''''''',,,,,,,,,,,,,,,,,,,,,,,,,''~[!!~!;~~^!'',,,,,,,,,,,,,,,.......
........''''''',,,,,,,,,,,,,,,,,,,,,,,,,,,,,'':!!~~^~~^!'',,,,,,,,,,,,,........
........''''',,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,'~:!~~^~~!^'',,,,,,,,,,,,........
.........''',,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,''^!~~:~~^!',,,,,,,,,,,.........
..........,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,'~!~~!'';'',,,,,,,,,..........
...........,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,'!~~~''!'',,,,,,,...........
............,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,'^~~~''~',,,,,,............
.............,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,'~~~~''~',,,,.............
..............,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,'~~~''~',,..............
................,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,'~~~''~................
.................,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,';~~'.................
..................,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,~~..................
....................,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,....................
......................,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,......................
........................,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,........................
...........................,,,,,,,,,,,,,,,,,,,,,,,,,...........................
...............................,,,,,,,,,,,,,,,,,...............................
-
ArnoldLayne
- Posts: 109
- Joined: 28 Dec 2014
- Location: Munich, Germany
- Contact:
Re: RC2014 ASCII Mandelbrot BASIC Example Runs in EhBasic
On my homebrew 65c02 machine, execution time of the unmodified program was 2.43 minutes @8MHz.
I then tried using INC COUNTER instead of COUNTER=COUNTER+1 in line 150 and got 2.35 minutes.
I then tried using INC COUNTER instead of COUNTER=COUNTER+1 in line 150 and got 2.35 minutes.
Re: RC2014 ASCII Mandelbrot BASIC Example Runs in EhBasic
ArnoldLayne wrote:
On my homebrew 65c02 machine, execution time of the unmodified program was 2.43 minutes @8MHz.
I then tried using INC COUNTER instead of COUNTER=COUNTER+1 in line 150 and got 2.35 minutes.
I then tried using INC COUNTER instead of COUNTER=COUNTER+1 in line 150 and got 2.35 minutes.
-
ArnoldLayne
- Posts: 109
- Joined: 28 Dec 2014
- Location: Munich, Germany
- Contact:
Re: RC2014 ASCII Mandelbrot BASIC Example Runs in EhBasic
Martin_H wrote:
I bet my Forth version would finish in about 30 seconds on your machine.
Which Forth flavour would you recommend?
Re: RC2014 ASCII Mandelbrot BASIC Example Runs in EhBasic
ArnoldLayne wrote:
Martin_H wrote:
I bet my Forth version would finish in about 30 seconds on your machine.
Which Forth flavour would you recommend?
I ported Tali Forth to my machine because it conforms to modern Forth syntax. Here's a link:
https://github.com/scotws/TaliForth
Re: RC2014 ASCII Mandelbrot BASIC Example Runs in EhBasic
Forth is a neat idea, but on a 65C02 SBC without external storage how do you save CREATE d word definitions?
I suppose you could have them in a text file that is re-submitted every time you boot Forth. Or perhaps there is a method to save the RAM library?
My Forth concepts are a little rusty, so I may be missing something.
I suppose you could have them in a text file that is re-submitted every time you boot Forth. Or perhaps there is a method to save the RAM library?
My Forth concepts are a little rusty, so I may be missing something.
Bill
- GARTHWILSON
- Forum Moderator
- Posts: 8773
- Joined: 30 Aug 2002
- Location: Southern California
- Contact:
Re: RC2014 ASCII Mandelbrot BASIC Example Runs in EhBasic
You could save compiled images in a tiny flash module or something like that, but on my workbench computer, I just send it the source code every time I use it, and it compiles or assembles or interprets on the fly, as appropriate.
http://WilsonMinesCo.com/ lots of 6502 resources
The "second front page" is http://wilsonminesco.com/links.html .
What's an additional VIA among friends, anyhow?
The "second front page" is http://wilsonminesco.com/links.html .
What's an additional VIA among friends, anyhow?
Re: RC2014 ASCII Mandelbrot BASIC Example Runs in EhBasic
BillO wrote:
Forth is a neat idea, but on a 65C02 SBC without external storage how do you save CREATE d word definitions?
I suppose you could have them in a text file that is re-submitted every time you boot Forth. Or perhaps there is a method to save the RAM library?
I suppose you could have them in a text file that is re-submitted every time you boot Forth. Or perhaps there is a method to save the RAM library?