interrupt function (register bank)

I want to create an interrupt function. So I have to know the interrupt number and I have to select the register bank. My question is, which register bank I must select and why???
Where can I get information about this problem?
Thank you for answers.
andy

More questions in this forum