Javascript 6502 emulator

Topics pertaining to the emulation or simulation of the 65xx microprocessors and their peripheral chips.
Post Reply
User avatar
Druzyek
Posts: 367
Joined: 12 May 2014
Contact:

Javascript 6502 emulator

Post 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.
User avatar
BigEd
Posts: 11463
Joined: 11 Dec 2008
Location: England
Contact:

Re: Javascript 6502 emulator

Post by BigEd »

Excellent - works well for me in Chrome and Safari, and a bit slower (20MHz) in Firefox.
SimonJ5
Posts: 31
Joined: 19 Dec 2002
Location: Cambridge, UK

Re: Javascript 6502 emulator

Post 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
User avatar
barrym95838
Posts: 2056
Joined: 30 Jun 2013
Location: Sacramento, CA, USA

Re: Javascript 6502 emulator

Post 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.
Got a kilobyte lying fallow in your 65xx's memory map? Sprinkle some VTL02C on it and see how it grows on you!

Mike B. (about me) (learning how to github)
User avatar
BitWise
In Memoriam
Posts: 996
Joined: 02 Mar 2004
Location: Berkshire, UK
Contact:

Re: Javascript 6502 emulator

Post by BitWise »

I get 45MHz in Chrome on my i7 desktop and 40MHz on my i7 laptop.
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
cbmeeks
Posts: 1254
Joined: 17 Aug 2005
Location: Soddy-Daisy, TN USA
Contact:

Re: Javascript 6502 emulator

Post 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)
Cat; the other white meat.
User avatar
Druzyek
Posts: 367
Joined: 12 May 2014
Contact:

Re: Javascript 6502 emulator

Post 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
mandelbrot.png (7.75 KiB) Viewed 1795 times
mandelbrot colored.png
Post Reply