ag_6502 soft core with phase-level accuracy