Claus and I made a ton of progress over the past day. In my post yesterday I had mentioned how Claus added some display code and the initial blue screen was being displayed successfully by FC64.
Claus kept on and added the timers which gave us the blinking cursor. Last night I hacked together a (very rough) keyboard implementation, which means the emulator now takes input from the user.
See for yourself at http://codeazur.com.br/stuff/fc64/ -- Flash Player 9 required.
You can now enter BASIC programs and have FC64 execute them. An example program that loops infinitely displaying "HELLO WORLD" is:
10 PRINT "HELLO WORLD"
20 GOTO 10
RUN
You can access the double quote by pressing shift and 2 (this is what the keyboard actually looks like). If you hit Escape, the program will abort.
There are definitely some things that are broken. Claus and I are currently brainstorming about how to best map keys - physically vs. logically, a mix of both, or fully configurable. The keyboard support that is in there now works for the most part, but some keys just don't register (and they won't until we come up with a better solution).
But hey, it works! Enjoy! :-)
By the way, we'll be entering this in the Flex Developer Derby in the hopes that it wins the "Just Freakin' Cool" category. Fingers crossed...
ActionScript, ActionScript 3, Flash, Commodore 64, C64, Emulator

14 Comments
Simply the coolest AS3 applicationin process. PEEK & POKES !
Posted by: Andre Michelle | May 10, 2006 12:46 PM
This is totally awesome - reminds me of my very first steps in "computer science" :D
You've got my vote!
Posted by: Philippe | May 10, 2006 1:11 PM
Hey, remove my email from my comment please...
Posted by: Philippe | May 10, 2006 1:12 PM
WOOT! This is pretty exciting stuff!
Posted by: sascha/hdrs | May 10, 2006 1:29 PM
This should win hands down?
*hand raised*
Posted by: Dan | May 10, 2006 1:30 PM
Enjoy your new TV and Xbox 360 :D
Posted by: Ash | May 10, 2006 1:33 PM
Love it! But I definitely vote for an option to use the keys in the configuration of a modern keyboard.
Posted by: Satori Canton | May 10, 2006 1:37 PM
I think you might get all 6 of the prizes. And well deserved it would be.
Nice, nice, nice.
Posted by: Jason Nussbaum | May 10, 2006 2:07 PM
Has anyone seen this:
http://en.wikipedia.org/wiki/Commodore_64
I would like to find the Basic language manual for the Vic20
Posted by: RconR | May 10, 2006 5:11 PM
Okay- I have to go to my momma's house and dig up that trunk with my old issues of RUN magazine!
Posted by: diamondtearz | May 10, 2006 5:14 PM
did u just stop ppl from submitting entries targeted at the jfc? lol... seriously good stuff, man.
cheers,
Emmanuel
Posted by: Emmanuel Okyere | May 10, 2006 5:16 PM
Truly a very cool project!!!!
I am almost shedding a tear for the good old days..
Posted by: Kim Hansen | May 10, 2006 5:50 PM
Digg: http://digg.com/programming/Flash_Commodore_C64_emulator
Posted by: darron | May 11, 2006 6:32 AM
Found this...
http://www.devili.iki.fi/Computers/Commodore/C64/Programmers_Reference/page_iii.html
:)
Posted by: Anon | May 12, 2006 2:15 PM