Users browsing this thread: 1 Guest(s)
Giving Lore to Another Character

#14
Posts: 3,971
Threads: 279
Thanks Received: 237
Thanks Given: 58
Joined: Oct 2011
Reputation: 65
Status
Tissue-aware
(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.
  Find
Quote  
[-] The following 1 user says Thank You to madsiur for this post:
  • PowerPanda (03-02-2017)



Messages In This Thread
Giving Lore to Another Character - by SSJ Rick - 10-18-2010, 04:53 PM
RE: Giving Lore To Another Character (Hex) - by madsiur - 03-02-2017, 12:54 AM

Forum Jump:

Users browsing this thread: 1 Guest(s)


Theme by Madsiur2017Custom Graphics by JamesWhite