Skip to content

Commit

Permalink
Use calloc to get clear mix buffer to prevent mix noise (#11)
Browse files Browse the repository at this point in the history
  • Loading branch information
aronson authored Nov 13, 2024
1 parent c221d38 commit 85b9d50
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions source_gba/mm_init_default.s
Original file line number Diff line number Diff line change
Expand Up @@ -68,8 +68,9 @@ mmInitDefault:
mul r0, r6
ldr r4,=mixlen
add r0, r4
bl malloc

mov r1, #1
bl calloc

mov r7, r0 // wavemem = beginning of buffer
add r3, r0, r4 // split up buffer into addresses [r3,r4,r5]
mov r0, #MM_SIZEOF_MODCH //
Expand Down

0 comments on commit 85b9d50

Please sign in to comment.