6502 emulator written in C# as a portable class library