Skip to content

Commit

Permalink
Use the bios return from irq code again. Fixes #150
Browse files Browse the repository at this point in the history
  • Loading branch information
Gericom committed Apr 14, 2024
1 parent d1efd9b commit 08eb851
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 6 deletions.
2 changes: 1 addition & 1 deletion code/core/arm9/source/VirtualMachine/VMDtcm.s
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,6 @@
#endif

.org vm_returnFromIrqAddress - VM_DTCM_BASE
.word vm_returnFromIrq
.word gGbaBios + 0x138

.end
5 changes: 0 additions & 5 deletions code/core/arm9/source/VirtualMachine/VMIrq.s
Original file line number Diff line number Diff line change
Expand Up @@ -234,8 +234,3 @@ arm_func vm_jumpToIrqHandlerCommon
mov lr, r4
ldr r4, DTCM(vm_irqSavedR4)
movs pc, lr

.text
arm_func vm_returnFromIrq
pop {r0-r3,r12,lr}
vmSUBS pc, lr, 4

0 comments on commit 08eb851

Please sign in to comment.