Users browsing this thread: 1 Guest(s)
Giving Lore to Another Character
(03-02-2017, 12:22 AM)PowerPanda Wrote: In this instance, can you help me understand why $08/$20 are Gau/Umaro instead of the usual $0B/$0D? I've been spending the past week looking through disassemblies, and I haven't yet been able to determine why it's sometimes one way and sometimes another.
Gau is position 3 (from 0) on the available characters byte ($1EDF), so the byte value to check or set is #$08. Since Umaro is 2 above Gau ($0D - $0B = 2), byte value to check is #$20. You probably (or maybe don't) know a single bit set on a byte can have a value of #$01, #$02, #$04, #$08, #$10, #$20, #$40, #$80 from positions 0 to 7. A byte value with multiple bits set is an addition of 2 or more of those values.
In the code I've posted, the BIT, TSB and TRB instructions does operations and / or checks on the available characters byte.
Details on them can be found here: http://assassin17.brinkster.net/thegun.htm
As for what the code I've posted, I might have missed something, I can't tell. I would assume everything concerning Rage is taken care in bank $C2, but it might not be the case.
« Next Oldest | Next Newest »
Users browsing this thread: 1 Guest(s)