Thank you for the feedback. This patch fixes the RL78 register bank calculation to use RL78_PSW_RBS0 and RL78_PSW_RBS1, matching the logic used by the RL78 simulator. Tested with rl78-elf.