An emulator for 6502 processor in java