rom loader exception handling and some cpu control switches