Swap SP and IP register indices