replacing: extsw->lgfr; add lgfr in simulator.