mirror of
https://github.com/italicsjenga/agb.git
synced 2025-01-22 15:16:40 +11:00
If r2 < 4 don't overwrite all memory
This commit is contained in:
parent
9a6f96b2ba
commit
dc46cfef45
1 changed files with 3 additions and 0 deletions
|
@ -64,6 +64,9 @@ agb_arm_func \fn_name
|
||||||
bne 4b
|
bne 4b
|
||||||
|
|
||||||
5:
|
5:
|
||||||
|
cmp r2, #0
|
||||||
|
beq 3f
|
||||||
|
|
||||||
.irp reg, r7,r8,r9,r10
|
.irp reg, r7,r8,r9,r10
|
||||||
mov \reg, #0
|
mov \reg, #0
|
||||||
.endr
|
.endr
|
||||||
|
|
Loading…
Add table
Reference in a new issue