Skip to content

Commit

Permalink
If r2 < 4 don't overwrite all memory (#475)
Browse files Browse the repository at this point in the history
Rare case, but we probably shouldn't break everything if it happens :)

- [x] Changelog updated / no changelog update needed
  • Loading branch information
gwilymk authored Aug 26, 2023
2 parents 9a6f96b + dc46cfe commit dd11960
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions agb/src/sound/mixer/mixer.s
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit dd11960

Please sign in to comment.