Users browsing this thread: 3 Guest(s)
Some final code requests (and screenshots)
(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.
« Next Oldest | Next Newest »
Users browsing this thread: 3 Guest(s)