If I have the titlescreen asm in bank 5 and the music on bank 6 and my main code is in the first bank, do I call the subroutine for the titlescreen in bank 5 and directly from that same bank (5) I call the subroutine for the music on the bank 6?
I'm not sure if I understand correctly,
If not could you give me more details or explain me how please? Thanks
There's more than one way to do it, but in this case, if I had the asm include for the titlescreen in bank 5, then I would also put loop that calls the titlescreen routine in the same bank. I would jump to this titlescreen loop from bank 1 near the beginning. In bank 6, I would have the data or sdata tables that contained the music, as well as the routines that initialized and updated the music. From the titlescreen loop, I would then jump to the routine that initializes the music before starting the title loop, then I would call the routine that checks/updates the music from the title loop with every iteration.
Alternately, there is no real need to have the titlescreen loop in the same bank as the asm include, but in this case you would have to make sure your "gosub titledrawscreen" specifies the correct bank.
I'm not sure if that makes it any clearer, so I can still whip up an example when I get a chance.