FF6 Hacking
Events Called from ASM - Printable Version

+- FF6 Hacking (https://www.ff6hacking.com/forums)
+-- Forum: Discussion Forums (https://www.ff6hacking.com/forums/forum-5.html)
+--- Forum: Magitek Research Facility (https://www.ff6hacking.com/forums/forum-9.html)
+--- Thread: Events Called from ASM (/thread-3139.html)



Events Called from ASM - m06 - 02-17-2016

So I'm trying to pin-point where some of the game events are called from. But I can't find where some game events are invoked, here's what I've got:

Code:
CA/0000: ASM    C0 bank, Return (void pointer for ASM)
CA/0001: ???    Wait for keypress then dismiss dialogue
CA/0003: ASM    C0/BE90, Game Initialization Event
CA/0008: ASM    C0/4C8E, "Received Item"
CA/000C: ???    "Learned Spell"
CA/0010: ASM    C0/4C7B, "Found GP"
CA/0014: ASM    C0/4CA9, "Empty!"
CA/0018: ASM    C0/C441, random encounter
CA/0034: ASM    C0/C65F, use tent
CA/0039: ASM    C0/C670, ??
CA/0040: ASM    C0/4C9E, "Monster-in-a-box!"
CA/004F: ???    Fade to darkness?
CA/0059: ???    Blackjack, go below decks
CA/0068: ???    enter Airship
CA/0078: SUB    enter Falcon
CA/007F: ???    Load Falcon
CA/0088: ???    Load Falcon
CA/008F: ???    Load Gogo's Lair, entrance
CA/0096: ???    Load Falcon
CA/009D: MAP    Falcon, upper deck: Doom Gaze killed, receive Bahamut
CA/00EA: SUB    use tent

The routines I marked with ??? I have no idea how are invoked. I guess some of the latter ones might come from Mode 7 routines but I can't figure out where or how that would happen. Any info on the subject would be nice.


RE: Events Called from ASM - Everything - 02-18-2016

Code:
CA/0001: ASM    C0/A4E8 Wait for keypress then dismiss dialog
CA/000C: ???    "Learned Spell", Never used
CA/0039: ASM    C0/C670 Warp/Warp Stone
CA/004F: ASM    EE/B26C (EE/02E2) Tent (world map)
CA/0059: ASM    EE/B26F (EE/2092) Enter Blackjack (ground entrance)
CA/0068: ASM    EE/B269 (EE/6ECD) Airship Deck
CA/007F: ASM    EE/B275 (EE/938E) Enter Kefka's Tower
CA/0088: ASM    EE/B272 (EE/93B3) Enter Phoenix Cave
CA/008F: ASM    EE/B278 (EE/0441) Enter Gogo's Lair
CA/0096: ASM    EE/B27B (EE/01A3) Doom Gaze Defeated

I filled in some things that were missing. There are a bunch of world map event pointers in a table at EE/B269. In parentheses are the places where these are referenced in the asm code.


RE: Events Called from ASM - Tenkarider - 02-18-2016

Pretty nice, you both saved me some time in searching for those events when i'll need to tweak them  Wink