Users browsing this thread: 1 Guest(s)
Making a Weapon Deal 2x Damage to a New Monster Type

#6
Posts: 3,971
Threads: 279
Thanks Received: 237
Thanks Given: 58
Joined: Oct 2011
Reputation: 65
Status
Tissue-aware
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.
  Find
Quote  



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: 1 Guest(s)


Theme by Madsiur2017Custom Graphics by JamesWhite