re-implement VM to match C++ isa-sim
fixed handling of SR_EI and SR_PEI, sys_exit