Emulation library for 6502-based 8-bit microcomputeres