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.
Javascript 6502 emulator
Re: Javascript 6502 emulator
Excellent - works well for me in Chrome and Safari, and a bit slower (20MHz) in Firefox.
Re: Javascript 6502 emulator
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
Thanks for sharing.
Simon
- barrym95838
- Posts: 2056
- Joined: 30 Jun 2013
- Location: Sacramento, CA, USA
Re: Javascript 6502 emulator
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)
Mike B. (about me) (learning how to github)
- BitWise
- In Memoriam
- Posts: 996
- Joined: 02 Mar 2004
- Location: Berkshire, UK
- Contact:
Re: Javascript 6502 emulator
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
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
Re: Javascript 6502 emulator
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)
48 MHz on the same machine with Chrome. (I hate that Chrome is faster)
Cat; the other white meat.
Re: Javascript 6502 emulator
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.
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.