øAslickproductions.org/forum/index.php?PHPSESSID=5f0fck550j2m4m2fpbtkj2vkm1&topic=2174.0e:/My Web Sites/Slick Productions - FFIV Message Board/slickproductions.org/forum/index92cc-3.htmlslickproductions.org/forum/index.php?PHPSESSID=5f0fck550j2m4m2fpbtkj2vkm1&board=8.20e:/My Web Sites/Slick Productions - FFIV Message Board/slickproductions.org/forum/index92cc-3.html.zx8$h^ÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÈà•¤½OKtext/htmlISO-8859-1gzip@øÕ½ÿÿÿÿÿÿÿÿTue, 10 Mar 2020 23:51:45 GMT0ó°° ®0®P®€§²ð®8$h^˜½ Better bank C2 disassembly

Author Topic: Better bank C2 disassembly  (Read 1150 times)

13375K31C43R

  • Ultros
  • *
  • Posts: 675
  • Gender: Male
    • View Profile
    • Leet Sketcher's Final Fantasy III Patches
Better bank C2 disassembly
« on: March 05, 2016, 06:46:19 PM »
Hi everyone! With all due respect to Assassin and Terii Senshi, a huge portion of their bank C2 disassembly document leaves a lot to be desired. It's all jumbled and doesn't make sense. I was able to see relatively quickly that the instructions were just flat-out wrong, especially when I found out that some of it contains functions called from bank C1. Therefore, I took it upon myself to re-interpret the hex data as best I could. This isn't a complete disassembly, but it should shed some better light on those specific parts of the code.

:edit:
Managed to decipher some more data, particularly the in-battle menu drawing scripts.

:edit:
Added the characters' battle palette pointers at C2/CE2B, and found a pattern in the data at C2/C945-C2/CD44. I'm not really sure what it is, but I'm guessing it's something else having to do with character's battle sprites.

:edit:
Identified the attack block palette data.

:edit:
Found a block of compressed data at C2/CD45, though I couldn't figure out its purpose.

:edit:
Identified a few more animation script commands.
« Last Edit: October 03, 2017, 02:47:30 PM by 13375K31C43R »
"Do not meddle in the affairs of wizards, for they are subtle and quick to anger." -Gildor from The Lord of the Rings

assassin

  • Bane of Retards
  • *
  • Posts: 1,033
  • space bears are not gentle!
    • View Profile
    • My Barren Webpage
Re: Better bank C2 disassembly
« Reply #1 on: March 06, 2016, 02:28:36 AM »
i prefer to rationalize large absences by calling that region "C1, Junior".  ;P  it mostly doesn't concern battle mechanics, and as you commented, it shares the other bank's aversion to TSB and TRB.  to be honest, it's amazing that the bulk of battle mechanics takes less than 30 KB (with a little being in actual C1).

anyway, good work.

13375K31C43R

  • Ultros
  • *
  • Posts: 675
  • Gender: Male
    • View Profile
    • Leet Sketcher's Final Fantasy III Patches
Re: Better bank C2 disassembly
« Reply #2 on: March 06, 2016, 03:01:25 AM »
Yes, I realized quickly that most of the code is just an extension of some of the stuff in bank C1. My point was, some of us require a correct disassembly for reference. The battle-related stuff in your disassembly was extremely helpful for most of the patches I've made thus far. I've got another document in the works that will require some of the stuff in this disassembly.
"Do not meddle in the affairs of wizards, for they are subtle and quick to anger." -Gildor from The Lord of the Rings

13375K31C43R

  • Ultros
  • *
  • Posts: 675
  • Gender: Male
    • View Profile
    • Leet Sketcher's Final Fantasy III Patches
Re: Better bank C2 disassembly
« Reply #3 on: October 15, 2016, 05:14:59 PM »
:bump: Updated.
"Do not meddle in the affairs of wizards, for they are subtle and quick to anger." -Gildor from The Lord of the Rings

Madsiur

  • Tunnel Armor
  • *
  • Posts: 149
  • Gender: Male
  • FF6AE coder
    • View Profile
    • Madsiur's Lair
Re: Better bank C2 disassembly
« Reply #4 on: October 16, 2016, 09:42:01 AM »
:edit:
Managed to decipher some more data, particularly the in-battle menu drawing scripts.

Good job! This document is a good reference. However I have to do a small observation; the line formatting of 1 byte instructions is a bit broken compared to the rest (instruction and comment shifted to the left). I'm using notepad++.

13375K31C43R

  • Ultros
  • *
  • Posts: 675
  • Gender: Male
    • View Profile
    • Leet Sketcher's Final Fantasy III Patches
Re: Better bank C2 disassembly
« Reply #5 on: October 17, 2016, 01:19:24 AM »
the line formatting of 1 byte instructions is a bit broken compared to the rest (instruction and comment shifted to the left). I'm using notepad++.

I used WordPad to write this and everything lined up. Try adjusting the space settings in NotePad++.
"Do not meddle in the affairs of wizards, for they are subtle and quick to anger." -Gildor from The Lord of the Rings

13375K31C43R

  • Ultros
  • *
  • Posts: 675
  • Gender: Male
    • View Profile
    • Leet Sketcher's Final Fantasy III Patches
Re: Better bank C2 disassembly
« Reply #6 on: October 29, 2016, 07:24:33 PM »
:bump: Another minor update.
"Do not meddle in the affairs of wizards, for they are subtle and quick to anger." -Gildor from The Lord of the Rings

13375K31C43R

  • Ultros
  • *
  • Posts: 675
  • Gender: Male
    • View Profile
    • Leet Sketcher's Final Fantasy III Patches
Re: Better bank C2 disassembly
« Reply #7 on: December 15, 2016, 02:15:22 PM »
:bump: More info! Yay!
"Do not meddle in the affairs of wizards, for they are subtle and quick to anger." -Gildor from The Lord of the Rings

13375K31C43R

  • Ultros
  • *
  • Posts: 675
  • Gender: Male
    • View Profile
    • Leet Sketcher's Final Fantasy III Patches
Re: Better bank C2 disassembly
« Reply #8 on: August 03, 2017, 01:01:39 AM »
:bump: A little more info after a long blue period.
"Do not meddle in the affairs of wizards, for they are subtle and quick to anger." -Gildor from The Lord of the Rings