simulator: fixed interrupts, added xret, added initial trap instruction stub