May 10, 2006
PRINT "FC64!"
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

Comments
Simply the coolest AS3 applicationin process. PEEK & POKES !
Posted by: Andre Michelle at 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 at May 10, 2006 01:11 PM
Hey, remove my email from my comment please...
Posted by: Philippe at May 10, 2006 01:12 PM
WOOT! This is pretty exciting stuff!
Posted by: sascha/hdrs at May 10, 2006 01:29 PM
This should win hands down?
*hand raised*
Posted by: Dan at May 10, 2006 01:30 PM
Enjoy your new TV and Xbox 360 :D
Posted by: Ash at May 10, 2006 01: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 at May 10, 2006 01: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 at May 10, 2006 02: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 at May 10, 2006 05: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 at May 10, 2006 05: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 at May 10, 2006 05:16 PM
Truly a very cool project!!!!
I am almost shedding a tear for the good old days..
Posted by: Kim Hansen at May 10, 2006 05:50 PM
Digg: http://digg.com/programming/Flash_Commodore_C64_emulator
Posted by: darron at May 11, 2006 06:32 AM
Found this...
http://www.devili.iki.fi/Computers/Commodore/C64/Programmers_Reference/page_iii.html
:)
Posted by: Anon at May 12, 2006 02:15 PM