interrupt : fixed incorrect register checking routine & change injection

fixed incorrect register checking routine & change injection