summaryrefslogtreecommitdiff
path: root/src/wram.asm
diff options
context:
space:
mode:
authordannye <corrnondacqb@yahoo.com>2016-04-09 16:50:47 -0500
committerdannye <corrnondacqb@yahoo.com>2016-04-09 16:50:47 -0500
commit726756ab18609ec81c8292aeeb7203e75cfd1bf7 (patch)
tree030619f9c4d0c6c7ff4f5005bde160252c42e538 /src/wram.asm
parent9c57218a97f990348545e320a840ca7c0f46e50a (diff)
Clarify how loop and call return addresses are handled
Diffstat (limited to 'src/wram.asm')
-rwxr-xr-xsrc/wram.asm21
1 files changed, 18 insertions, 3 deletions
diff --git a/src/wram.asm b/src/wram.asm
index dce68e1..fd102f6 100755
--- a/src/wram.asm
+++ b/src/wram.asm
@@ -1335,11 +1335,26 @@ wMusicPanning:: ; ddf1
wddf2:: ; ddf2
ds $1
-; 4 pointers to the addresses of the return point of the sub branch
-wMusicReturnAddress:: ; ddf3
+; 4 pointers to the positions on the stack for each channel
+wMusicChannelStackPointers:: ; ddf3
ds $8
- ds $58
+; these stacks contain the address of the command to return to at the end of a sub branch (2 bytes)
+; and also contain the address of the command to return to at the end of a loop (2 bytes for address and
+; 1 byte for loop count)
+wMusicCh1Stack:: ; ddfb
+ ds $c
+
+wMusicCh2Stack:: ; de07
+ ds $c
+
+wMusicCh3Stack:: ; de13
+ ds $c
+
+wMusicCh4Stack:: ; de1f
+ ds $c
+
+ ds $28
wde53:: ; de53
ds $1