Series of blog posts on C64 JavaScript emulator from scratch

Topics pertaining to the emulation or simulation of the 65xx microprocessors and their peripheral chips.
fastgear
Posts: 141
Joined: 27 Apr 2016
Location: South Africa

Series of blog posts on C64 JavaScript emulator from scratch

Post by fastgear »

Hi all!

In the last month I have been writing C64 emulator from scratch in JavaScript.

I have decided to write a couple of blog posts detailing my experience as I go along.

One of goals is to eventually be able to load a game from a .tap file (e.g. tape).

For those interested here is the link to my series of blog posts:

http://emufromscratch.blogspot.co.za

Any feedback, comments and suggestions welcome!
User avatar
BigEd
Posts: 11464
Joined: 11 Dec 2008
Location: England
Contact:

Re: Series of blog posts on C64 JavaScript emulator from scr

Post by BigEd »

Good to see that Johan! I can't get the RSS feed on your blog to work, but I've added you on G+.

Oh, and welcome!
fastgear
Posts: 141
Joined: 27 Apr 2016
Location: South Africa

Re: Series of blog posts on C64 JavaScript emulator from scr

Post by fastgear »

Thanks Ed

I must admit I am quite new to blogging, not even to speak of Blogger :-)

Anyway, I was quickly sniffing around and found that there is a way to get RSS feed to work on Blogger. It was quite a mission to find this out!

To get a RSS feed on Blogger Blog you would use the following form:

http://blogname.blogspot.com/feeds/post ... lt?alt=rss

So my Blog would be: http://emufromscratch.blogspot.com/feed ... lt?alt=rss
User avatar
BigEd
Posts: 11464
Joined: 11 Dec 2008
Location: England
Contact:

Re: Series of blog posts on C64 JavaScript emulator from scr

Post by BigEd »

That's great - subscribed!
joe7
Posts: 78
Joined: 23 Feb 2014

Re: Series of blog posts on C64 JavaScript emulator from scr

Post by joe7 »

Welcome. I was able to run your Java emulator, very impressive indeed. It starts up okay but I didn't have time to sift through games to see which ones work. (One loaded but didn't run.)

Looking forward to the JavaScript version, good luck.
fastgear
Posts: 141
Joined: 27 Apr 2016
Location: South Africa

Re: Series of blog posts on C64 JavaScript emulator from scr

Post by fastgear »

Thanks joe7!

While developing the Java Emulator I only tested a handful of .TAP files.

The ones I found to work was the following:

Dan Dare - Pilot of the future (1986)
Blue Max
Up 'N Down
User avatar
BigEd
Posts: 11464
Joined: 11 Dec 2008
Location: England
Contact:

Re: Series of blog posts on C64 JavaScript emulator from scr

Post by BigEd »

I've taken the liberty of putting the first blog post's development into an online sandbox:
https://jsfiddle.net/pxx8nr5f/
(with minor tweaks for convenience)
fastgear
Posts: 141
Joined: 27 Apr 2016
Location: South Africa

Re: Series of blog posts on C64 JavaScript emulator from scr

Post by fastgear »

Hi All

I just published Part 5 of this series : Comparisons and Branching

Here is the link:

http://emufromscratch.blogspot.co.za/20 ... ching.html
fastgear
Posts: 141
Joined: 27 Apr 2016
Location: South Africa

Re: Series of blog posts on C64 JavaScript emulator from scr

Post by fastgear »

Thanks @BigEd Nice tool to have in the JavaScript ToolBox
fastgear
Posts: 141
Joined: 27 Apr 2016
Location: South Africa

Re: Series of blog posts on C64 JavaScript emulator from scr

Post by fastgear »

Hi All

I just published Part 6 of this series: The stack and related operations

Here is the link:

http://emufromscratch.blogspot.co.za/20 ... tions.html
fastgear
Posts: 141
Joined: 27 Apr 2016
Location: South Africa

Re: Series of blog posts on C64 JavaScript emulator from scr

Post by fastgear »

I just released Part 7 of my emulator in JavaScript from scratch Series. In this series I finish off the CPU part of the emulator. In subsequent posts I will be covering topics like running the Klaus Test Suite on the emulator and Booting the C64 with its ROMS.

Here is the link http://emufromscratch.blogspot.co.za/20 ... tions.html
User avatar
BigEd
Posts: 11464
Joined: 11 Dec 2008
Location: England
Contact:

Re: Series of blog posts on C64 JavaScript emulator from scr

Post by BigEd »

There's a gotcha in the transfer instructions - check TXS! It doesn't set the flags.
fastgear
Posts: 141
Joined: 27 Apr 2016
Location: South Africa

Re: Series of blog posts on C64 JavaScript emulator from scr

Post by fastgear »

Good spotting! It actually took me to run the Klaus Test Suite (presented in my next blog) to spot this error.
User avatar
HansO
Posts: 206
Joined: 31 Oct 2003

Re: Series of blog posts on C64 JavaScript emulator from scr

Post by HansO »

Nice read!
fastgear
Posts: 141
Joined: 27 Apr 2016
Location: South Africa

Re: Series of blog posts on C64 JavaScript emulator from scr

Post by fastgear »

I have just released part 8 of my emulator in JavaScript from scratch series.

http://emufromscratch.blogspot.co.za/20 ... suite.html

In this series we will be running the Klaus Test Suite against our emulator, giving some surprising bugs!

In this blog I will also be extending the Debugging functionality of the emulator, so all in all this is a bit of a lengthy blog post compared to my previous posts.

So, have a cup of coffee handy :-)
Post Reply