6502.org Forum  Projects  Code  Documents  Tools  Forum
It is currently Wed Nov 13, 2024 4:22 am

All times are UTC




Post new topic Reply to topic  [ 7 posts ] 
Author Message
 Post subject: Javascript 6502 emulator
PostPosted: Tue Jul 09, 2019 12:11 am 
Offline
User avatar

Joined: Mon May 12, 2014 6:18 pm
Posts: 365
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.


Top
 Profile  
Reply with quote  
PostPosted: Tue Jul 09, 2019 7:31 am 
Offline
User avatar

Joined: Thu Dec 11, 2008 1:28 pm
Posts: 10977
Location: England
Excellent - works well for me in Chrome and Safari, and a bit slower (20MHz) in Firefox.


Top
 Profile  
Reply with quote  
PostPosted: Tue Jul 09, 2019 8:26 am 
Offline

Joined: Thu Dec 19, 2002 4:01 pm
Posts: 31
Location: Cambridge, UK
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


Top
 Profile  
Reply with quote  
PostPosted: Wed Jul 10, 2019 7:33 am 
Offline
User avatar

Joined: Sun Jun 30, 2013 10:26 pm
Posts: 1949
Location: Sacramento, CA, USA
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)


Top
 Profile  
Reply with quote  
PostPosted: Wed Jul 10, 2019 8:36 am 
Offline
User avatar

Joined: Tue Mar 02, 2004 8:55 am
Posts: 996
Location: Berkshire, UK
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


Top
 Profile  
Reply with quote  
PostPosted: Wed Jul 10, 2019 12:30 pm 
Offline
User avatar

Joined: Wed Aug 17, 2005 12:07 am
Posts: 1250
Location: Soddy-Daisy, TN USA
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.


Top
 Profile  
Reply with quote  
PostPosted: Wed Jul 10, 2019 2:10 pm 
Offline
User avatar

Joined: Mon May 12, 2014 6:18 pm
Posts: 365
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.

Attachment:
mandelbrot.png
mandelbrot.png [ 7.75 KiB | Viewed 1102 times ]
Attachment:
mandelbrot colored.png
mandelbrot colored.png [ 16.21 KiB | Viewed 1102 times ]


Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 7 posts ] 

All times are UTC


Who is online

Users browsing this forum: No registered users and 2 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to: