I just downloaded the latest freebasic as well, its been ages since I used it last, and when you run it, it looks like a C64 alright. I did the typical 10 Print "hello", 20 goto 10, and that works fine, but changing background color with poke 53280,1 did not. So not everything is emulated, but anyways, it looks alright.
I started working on a C64 emulator once using blitzplus which was to be able to emulate the 6502 assembly code, but never finished it. I did all the opcode processing, but kinda got bored with it. I had later on thought about making a new one using blitzmax, but just never found the time.
There is a lot of stuff going into making an emulator, and those that finish deserves a pad on the back for sticking with it.
Someone just did an emulator in blitzmax which emulates an intel 8080 cpu used in an old space invaders arcade machine. You can find it here if you want a peek at it. It comes with complete code and a greatly written tutorial.
http://rveilleux.googlepages.com/blitzmaxarcadeemulatortutorial