When the "movs pc,lr" instruction is executed, if an IRQ interrupt is triggered, it will result in behavior different from that of the actual hardware. #104
On the actual hardware, when the "movs pc, lr" instruction is executed in SVC mode, even if an IRQ interrupt is triggered, the next instruction will be executed in USR mode. However, in the "magia" environment, the next instruction will be executed in IRQ mode instead.
400: e1b0f00e movs pc, lr
On the actual hardware, when the "movs pc, lr" instruction is executed in SVC mode, even if an IRQ interrupt is triggered, the next instruction will be executed in USR mode. However, in the "magia" environment, the next instruction will be executed in IRQ mode instead.