Check out the BASIC Engine!
FC64 is a low level Commodore C64 emulator for Flash Player 9, written in AS3.