mirror of
https://github.com/italicsjenga/agb.git
synced 2024-12-23 08:11:33 +11:00
If r2 < 4 don't overwrite all memory (#475)
Rare case, but we probably shouldn't break everything if it happens :) - [x] Changelog updated / no changelog update needed
This commit is contained in:
commit
dd119604d8
|
@ -64,6 +64,9 @@ agb_arm_func \fn_name
|
|||
bne 4b
|
||||
|
||||
5:
|
||||
cmp r2, #0
|
||||
beq 3f
|
||||
|
||||
.irp reg, r7,r8,r9,r10
|
||||
mov \reg, #0
|
||||
.endr
|
||||
|
|
Loading…
Reference in a new issue