6502 emulator in FreeBASIC