pasim: use s10 to store function offset at interrupt, store function base instead of PC in s9