mirror of https://github.com/mgba-emu/mgba.git
Save some registers we were overwriting in IntrWait
This commit is contained in:
parent
d6a28c8a6e
commit
80d1764e6c
|
@ -18,13 +18,13 @@ const uint8_t hleBios[SIZE_BIOS] = {
|
|||
0x7c, 0x01, 0x00, 0x00, 0x0f, 0x50, 0x2d, 0xe9, 0x01, 0x03, 0xa0, 0xe3,
|
||||
0x00, 0xe0, 0x8f, 0xe2, 0x04, 0xf0, 0x10, 0xe5, 0x0f, 0x50, 0xbd, 0xe8,
|
||||
0x04, 0xf0, 0x5e, 0xe2, 0x01, 0x00, 0xa0, 0xe3, 0x01, 0x10, 0xa0, 0xe3,
|
||||
0x00, 0x40, 0x2d, 0xe9, 0x00, 0x50, 0x4f, 0xe1, 0x1f, 0xf0, 0x29, 0xe3,
|
||||
0x0c, 0x40, 0x2d, 0xe9, 0x00, 0x50, 0x4f, 0xe1, 0x1f, 0xf0, 0x29, 0xe3,
|
||||
0x01, 0x43, 0xa0, 0xe3, 0x00, 0x00, 0x50, 0xe3, 0x00, 0x00, 0xa0, 0xe3,
|
||||
0x01, 0x20, 0xa0, 0xe3, 0x00, 0x00, 0x00, 0x0a, 0x01, 0x03, 0xc4, 0xe5,
|
||||
0x08, 0x02, 0xc4, 0xe5, 0xb8, 0x30, 0x54, 0xe1, 0x01, 0x30, 0x13, 0xe0,
|
||||
0x01, 0x30, 0x23, 0x10, 0xb8, 0x30, 0x44, 0x11, 0x08, 0x22, 0xc4, 0xe5,
|
||||
0xf7, 0xff, 0xff, 0x0a, 0x93, 0xf0, 0x29, 0xe3, 0x05, 0xf0, 0x69, 0xe1,
|
||||
0x00, 0x80, 0xbd, 0xe8, 0x1f, 0xf0, 0x29, 0xe3, 0x02, 0x36, 0xa0, 0xe1,
|
||||
0x0c, 0x80, 0xbd, 0xe8, 0x1f, 0xf0, 0x29, 0xe3, 0x02, 0x36, 0xa0, 0xe1,
|
||||
0x23, 0x36, 0xa0, 0xe1, 0x01, 0x04, 0x12, 0xe3, 0x0d, 0x00, 0x00, 0x0a,
|
||||
0x01, 0x03, 0x12, 0xe3, 0x04, 0x00, 0x00, 0x0a, 0x04, 0x00, 0xb0, 0xe8,
|
||||
0x04, 0x00, 0xa1, 0xe8, 0x01, 0x30, 0x53, 0xe2, 0xfc, 0xff, 0xff, 0x1a,
|
||||
|
|
|
@ -56,7 +56,7 @@ VBlankIntrWait:
|
|||
mov r0, #1
|
||||
mov r1, #1
|
||||
IntrWait:
|
||||
stmfd sp!, {lr}
|
||||
stmfd sp!, {r2-r3, lr}
|
||||
mrs r5, spsr
|
||||
msr cpsr, #0x1F
|
||||
# Pull current interrupts enabled and add the ones we need
|
||||
|
@ -80,7 +80,7 @@ strb r2, [r4, #0x208]
|
|||
beq 0b
|
||||
msr cpsr, #0x93
|
||||
msr spsr, r5
|
||||
ldmfd sp!, {pc}
|
||||
ldmfd sp!, {r2-r3, pc}
|
||||
|
||||
CpuSet:
|
||||
msr cpsr, #0x1F
|
||||
|
|
Loading…
Reference in New Issue