Making a Weapon Deal 2x Damage to a New Monster Type
#6
Code:
$C2/41DD 89 20       BIT #$20
$C2/41DF F0 04       BEQ $04    [$41E5]
$C2/41E5 60          RTS

This is not good I think. Where do you want to branch? Why do you put a condition with nothing after if you want to branch to the RTS? F0 04 will branch 4 bytes after the command so 3 bytes after the RTS.
Reply


Messages In This Thread
RE: Newbie Coding 01: Making a Weapon Deal 2x Dmg to a New Monster Type - by madsiur - 01-28-2018, 10:16 PM

Forum Jump:


Users browsing this thread: