Page 1 of 1
Javascript 6502 emulator
Posted: Tue Jul 09, 2019 12:11 am
by Druzyek
I've been working on a 65C02 emulator in Javascript and finally set up a little site to host it on:
http://www.calc6502.com. My plan is to use the emulator to develop the firmware for the calculator I've been planning and share it on the site so people can try out the calculator without having to download anything. Right now it's just running EhBasic to make sure it works alright.
It runs at around 35MHz in Chrome for me. Please let me know if it runs under 10MHz for you if you get a chance to try it. I'm still trying to adjust the second thread and I'm not sure it will be smooth on all machines.
Re: Javascript 6502 emulator
Posted: Tue Jul 09, 2019 7:31 am
by BigEd
Excellent - works well for me in Chrome and Safari, and a bit slower (20MHz) in Firefox.
Re: Javascript 6502 emulator
Posted: Tue Jul 09, 2019 8:26 am
by SimonJ5
It works well under Chrome - speed reported is a bit 'lumpy' varying between about 28MHz and 35MHz. The processor it's running on is a 2.7GHz Core i7-6820HQ on Windows 10.
Thanks for sharing.
Simon
Re: Javascript 6502 emulator
Posted: Wed Jul 10, 2019 7:33 am
by barrym95838
It looks very attractive and promising, but unfortunately Runs at 0 MHz on my current (admittedly brutally sub-standard) Chrome on Vista home desktop system I use for day-to-day browsing. I seem to be able to Step it, and I get the EhBASIC start up query at about 24 MHz, but it just silently stalls to 0 MHz the instant I press a key.
Re: Javascript 6502 emulator
Posted: Wed Jul 10, 2019 8:36 am
by BitWise
I get 45MHz in Chrome on my i7 desktop and 40MHz on my i7 laptop.
Re: Javascript 6502 emulator
Posted: Wed Jul 10, 2019 12:30 pm
by cbmeeks
30 MHz on Firefox and Windows 7 Pro 64-bit (Laptop). This laptop is an i7-6820HQ @ 2.7GHz.
48 MHz on the same machine with Chrome. (I hate that Chrome is faster)
Re: Javascript 6502 emulator
Posted: Wed Jul 10, 2019 2:10 pm
by Druzyek
Thanks for trying it out guys.
barrym95838, I sent you a PM. Maybe we can get it to work.
I got Gordon's text-based Mandelbrot program working. The second one POKEs values into the foreground color address to draw in color.

- mandelbrot.png (7.75 KiB) Viewed 1798 times