mirror of
https://github.com/italicsjenga/agb.git
synced 2025-01-11 17:41:33 +11:00
Don't actually need to clear the buffer
This commit is contained in:
parent
2ace226db8
commit
33c948208a
|
@ -169,13 +169,7 @@ agb_arm_func agb_rs__mixer_collapse
|
||||||
@ r0 = target buffer (i8)
|
@ r0 = target buffer (i8)
|
||||||
@ r1 = input buffer (i16) of fixnums with 4 bits of precision (read in sets of i16 in an i32)
|
@ r1 = input buffer (i16) of fixnums with 4 bits of precision (read in sets of i16 in an i32)
|
||||||
|
|
||||||
@ firstly clear the buffer
|
push {r4-r11}
|
||||||
push {r0, r1, r4-r11, lr}
|
|
||||||
ldr r1, agb_rs__buffer_size
|
|
||||||
|
|
||||||
bl agb_rs__init_buffer
|
|
||||||
|
|
||||||
pop {r0, r1}
|
|
||||||
|
|
||||||
CONST_0 .req r7
|
CONST_0 .req r7
|
||||||
CONST_FF .req r8
|
CONST_FF .req r8
|
||||||
|
@ -252,6 +246,6 @@ SWAP_SIGN .req r11
|
||||||
subs r2, r2, #16 @ r2 -= 16
|
subs r2, r2, #16 @ r2 -= 16
|
||||||
bne 1b @ loop if not 0
|
bne 1b @ loop if not 0
|
||||||
|
|
||||||
pop {r4-r11, lr}
|
pop {r4-r11}
|
||||||
bx lr
|
bx lr
|
||||||
agb_arm_end agb_rs__mixer_collapse
|
agb_arm_end agb_rs__mixer_collapse
|
||||||
|
|
Loading…
Reference in a new issue