refactor MOS6502
refactor