Users browsing this thread: 1 Guest(s)
Reverse actors HP MP progression

#30
Posts: 290
Threads: 3
Thanks Received: 40
Thanks Given: 1
Joined: Apr 2012
Reputation: 9
Status
None
JSR and JMP are identical instructions, except JSR allows you to easily return to the point you jumped from (with an RTS instruction). Since you're interrupting an existing routine for a bit of custom code (and not writing a brand new, custom subroutine), you'll definitely want to RTS afterward.

For example, here's a section of the block the Edrin pasted above:

Code:
C0/A286:    8D0342      STA $4203      (save as a multiplier)
C0/A289:    B90816      LDA $1608,Y    (character level)
C0/A28C:    851B        STA $1B        (save it for now)
C0/A28E:    641F        STZ $1F        (zero out upper HP byte)
C0/A290:    AE1642      LDX $4216
C0/A293:    BFA07CED    LDA $ED7CA0,X  (Initial HP)
C0/A297:    851E        STA $1E        (save initial HP)
C0/A299:    A600        LDX $00        (X = #$0000)

Wherever you interrupt this routine, you're going to want to finish executing it after your custom subroutine has run, which is where the RTS instruction would come into play.


GET A SILK BAG FROM THE GRAVEYARD DUCK TO LIVE LONGER.

Brave New World
  Find
Quote  



Messages In This Thread
Reverse actors HP MP progression - by Tenkarider - 06-12-2014, 07:43 AM
RE: Reverse actors HP MP progression - by Cyprus - 06-12-2014, 07:54 AM
RE: Reverse actors HP MP progression - by Cyprus - 06-12-2014, 09:16 AM
RE: Reverse actors HP MP progression - by Cyprus - 06-12-2014, 03:28 PM
RE: Reverse actors HP MP progression - by B-Run - 06-13-2014, 07:20 AM
RE: Reverse actors HP MP progression - by Cyprus - 06-13-2014, 10:41 AM
RE: Reverse actors HP MP progression - by Cyprus - 06-13-2014, 04:43 PM
RE: Reverse actors HP MP progression - by madsiur - 06-14-2014, 06:42 PM
RE: Reverse actors HP MP progression - by madsiur - 06-14-2014, 07:47 PM
RE: Reverse actors HP MP progression - by Synchysi - 06-15-2014, 09:49 AM
RE: Reverse actors HP MP progression - by B-Run - 06-16-2014, 07:19 AM
RE: Reverse actors HP MP progression - by B-Run - 06-17-2014, 03:16 PM

Forum Jump:

Users browsing this thread: 1 Guest(s)


Theme by Madsiur2017Custom Graphics by JamesWhite