If r2 < 4 don't overwrite all memory

This commit is contained in:
Gwilym Inzani 2023-08-22 20:15:26 +01:00
parent 9a6f96b2ba
commit dc46cfef45

View file

@ -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