From dc46cfef45a8c692d05de364dc5fbbfd88bac699 Mon Sep 17 00:00:00 2001 From: Gwilym Inzani Date: Tue, 22 Aug 2023 20:15:26 +0100 Subject: [PATCH] If r2 < 4 don't overwrite all memory --- agb/src/sound/mixer/mixer.s | 3 +++ 1 file changed, 3 insertions(+) diff --git a/agb/src/sound/mixer/mixer.s b/agb/src/sound/mixer/mixer.s index fa59156f..9fafa4fc 100644 --- a/agb/src/sound/mixer/mixer.s +++ b/agb/src/sound/mixer/mixer.s @@ -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