Some final code requests (and screenshots)
Code:
C2/566E: E0 44 00     CPX #$0044     (are we pointing at Step Mine's menu slot?)
C2/5671: D0 09        BNE $567C      (branch if not)
C2/5673: AD 64 18     LDA $1864      (minutes portion of time played, from when main
                                      menu was last visited.  or seconds remaining,
                                      if we're in a timed area.)
C2/5676: C9 1E        CMP #$1E       (set Carry if >= 30 minutes)
C2/5678: AD 63 18     LDA $1863      (hours portion of time played, from when main
                                      menu was last visited.  or minutes remaining,
                                      if we're in a timed area.)
C2/567B: 2A           ROL            (MP Cost = [hours * 2] + [minutes DIV 30] or
                                      unintended [minutes remaining * 2] +
                                      [seconds remaining DIV 30])
If you want to halve the MP cost, replace the ROL with a NOP. This makes the LDA $1864 and CMP#$1E pointless, so I'd NOP them too, but it's not strictly necessary.
Reply


Messages In This Thread
RE: Some final code requests (and screenshots) - by Subtraction - 05-09-2019, 04:44 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Final Requests for Help PowerPanda 54 33,710 05-15-2021, 11:36 AM
Last Post: MysticLord
Dark Knight FF6 SNES vs GBA code differences? Royaken 2 2,590 11-01-2019, 07:32 PM
Last Post: Royaken
  ASM Requests Gi Nattak 51 56,362 12-06-2016, 12:31 AM
Last Post: dn
  asm hacking: "faking" short jumps from your code (in a new bank) to old code Eggers 2 3,912 04-16-2016, 07:18 PM
Last Post: madsiur
  Magic Control Code sleepydude 16 14,317 09-19-2015, 02:41 PM
Last Post: Tenkarider
  Sprite Armor Code Royaken 2 3,577 05-30-2015, 11:26 AM
Last Post: Catone
  FF6LE Requests & Suggestions Zeemis 1 2,828 03-02-2012, 02:35 PM
Last Post: madsiur

Forum Jump:


Users browsing this thread: 1 Guest(s)