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:
Gwilym Inzani 2023-08-26 14:25:12 +01:00 committed by GitHub
commit dd119604d8
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

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