I was trying to document the code (and convert to unified syntax so it can compile with Clang's built-in assembler), and noticed this:
https://github.com/ipatix/gba-hq-mixer/blob/main/m4a_hq_mixer.s#L890-910
L891 and L900 both refer to R6 in the comment, but actually operate on R0. It seems like the rest of the code expects it to be in R6 like the comment.
I was trying to document the code (and convert to unified syntax so it can compile with Clang's built-in assembler), and noticed this: https://github.com/ipatix/gba-hq-mixer/blob/main/m4a_hq_mixer.s#L890-910 L891 and L900 both refer to
R6
in the comment, but actually operate onR0
. It seems like the rest of the code expects it to be inR6
like the comment.