From 0ec3c499cbe5892026fa9cdb9494b96626b63d92 Mon Sep 17 00:00:00 2001 From: Gwilym Kuiper Date: Wed, 4 May 2022 20:27:41 +0100 Subject: [PATCH] Just use range push and pop --- agb/src/sound/mixer/mixer.s | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/agb/src/sound/mixer/mixer.s b/agb/src/sound/mixer/mixer.s index 7af98fce..98a953e5 100644 --- a/agb/src/sound/mixer/mixer.s +++ b/agb/src/sound/mixer/mixer.s @@ -140,7 +140,7 @@ agb_arm_func agb_rs__mixer_collapse @ Arguments: @ r0 = target buffer (i8) @ r1 = input buffer (i16) of fixnums with 4 bits of precision (read in sets of i16 in an i32) - push {r4, r5, r6, r7, r8, r9, r10, r11} + push {r4-r11} CONST_0 .req r7 CONST_FF .req r8 @@ -197,6 +197,6 @@ SWAP_SIGN .req r11 subs r2, r2, #4 @ r2 -= 4 bne 1b @ loop if not 0 - pop {r4, r5, r6, r7, r8, r9, r10, r11} + pop {r4-r11} bx lr agb_arm_end agb_rs__mixer_collapse