Users browsing this thread: 1 Guest(s)
Random battle theme
(12-11-2018, 03:52 PM)madsiur Wrote: Sorry for the late reply. I think you need to relocate and expand this table and change the LDA in the following code. You new list must end with $FF so there is no infinite loop (well any value from $80 to $FF would do in fact).
Code:Data: Song indexes which need the current song to be paused then resumed - Evil Peer
C5/06F9: 24 (Battle, from C5/062B)
C5/06FA: 38 (Nighty Night)
C5/06FB: 14 (Decisive battle)
C5/06FC: 33 (Fierce battle)
C5/06FD: FF (Silence?)
Code:C5/062B: BFF906C5 LDA $C506F9,X (Song indexes which need the current song to be paused then resumed)
C5/062F: 300D BMI $063E (branch if song is not on list?)
C5/0631: C501 CMP $01
C5/0633: F003 BEQ $0638 (branch if song on list matched?)
C5/0635: E8 INX
C5/0636: 80F3 BRA $062B (loop for all songs?)
Thanks for the reply, and don't worry about the delay - I'm sure we are all busy for the Christmas season!
Anyway, I looked at your suggestion briefly today, but I'm a bit confused. I understand you are suggesting I move the table listed above somewhere else in the code (and make a pointer to it I imagine), but it seems like the the code you listed above already ends in FF at C506Fd. I must be reading your suggestion wrong. Can you give an example of what to change so I can continue from there?
Edit: Err, wait - does your code above already do all the work? I am still rubbish at ASM editing.
« Next Oldest | Next Newest »
|
||||
Users browsing this thread: 1 Guest(s)