Users browsing this thread: 3 Guest(s)
Some final code requests (and screenshots)

#90
Posts: 3,970
Threads: 279
Thanks Received: 236
Thanks Given: 58
Joined: Oct 2011
Reputation: 65
Status
Tissue-aware
(10-03-2018, 11:56 AM)Warrax Wrote: If anyone care to explain or have a guide to share.

Code:
$B3 vgrm?ucb
        v: ignore vanish
        g: gauntlet is equipped ??? (Bat.Pwr *= 7/4)
        r: ignore attacker row
        m: ignore damage multiplier
        u: don't retarget, undead attack ???
        c: automatic critical hit ??
        b: blitz input failed

This is only a way to differentiate the bits, see vgrm?ucb as 76543210 (8 bits on a byte, reading from right to left). Each bit from right to left have a value of #$01, #$02, #$04, #$08, #$10, #$20 and #$40. So if you want to set two flags, like auto critical (#$02) and ignore attacker row (#$20), you do #$20 + #$02 = #$22. Setting all flags of the bytes would be LDA #$FF. TSB will set those flags to the byte while TRB would clear those flags.
  Find
Quote  
[-] The following 1 user says Thank You to madsiur for this post:
  • Warrax (10-03-2018)



Messages In This Thread
RE: Some final code requests (and screenshots) - by madsiur - 10-03-2018, 01:47 PM

Forum Jump:

Users browsing this thread: 3 Guest(s)


Theme by Madsiur2017Custom Graphics by JamesWhite