øAslickproductions.org/forum/index.php?PHPSESSID=5f0fck550j2m4m2fpbtkj2vkm1&action=profile;u=123;area=showposts;start=1230e:/My Web Sites/Slick Productions - FFIV Message Board/slickproductions.org/forum/index500b.htmlslickproductions.org/forum/index.php?PHPSESSID=5f0fck550j2m4m2fpbtkj2vkm1&action=profile;area=showposts;u=123e:/My Web Sites/Slick Productions - FFIV Message Board/slickproductions.org/forum/index500b.html.zx7òg^ÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÈ P,–OKtext/htmlISO-8859-1gzip8:Ö–ÿÿÿÿÿÿÿÿTue, 10 Mar 2020 20:18:22 GMT0ó°° ®0®P®€§²ð®6òg^ÿÿÿÿÿÿÿÿP6– Show Posts - Grimoire LD

Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - Grimoire LD

1231
Stop Routine

Code: [Select]
$03/D8EE AD 05 27 LDA $2705  [$7E:2705] A:0003 X:0022 Y:0000 P:envMxdizc - Load Target's Status Byte 3 into A.
$03/D8F1 09 40 ORA #$40 A:0000 X:0022 Y:0000 P:envMxdiZc - Add 40 to its value (Stop)
$03/D8F3 8D 05 27 STA $2705  [$7E:2705] A:0040 X:0022 Y:0000 P:envMxdizc - Store it in Target's Status Byte 3.
$03/D8F6 AD 9D 28 LDA $289D  [$7E:289D] A:0040 X:0022 Y:0000 P:envMxdizc - Load 40 from 7E289D (likely something related to stop)
$03/D8F9 8D 7B 39 STA $397B  [$7E:397B] A:000A X:0022 Y:0000 P:envMxdizc - Store A in 7E397B
$03/D8FC A9 0A LDA #$0A A:000A X:0022 Y:0000 P:envMxdizc - Load 0A into A.
$03/D8FE 85 D6 STA $D6    [$00:00D6] A:000A X:0022 Y:0000 P:envMxdizc - Store A in D6.
$03/D900 A5 CF LDA $CF    [$00:00CF] A:000A X:0022 Y:0000 P:envMxdizc - Load A from CF.
$03/D902 20 36 9E JSR $9E36  [$03:9E36] A:0007 X:0022 Y:0000 P:envMxdizc - Jump to Subroutine.
$03/D905 AE 30 35 LDX $3530  [$7E:3530] A:0000 X:001E Y:001E P:envMxdizc - Load the value in 7E3530 into X.
$03/D908 A5 D4 LDA $D4    [$00:00D4] A:0000 X:0093 Y:001E P:envMxdizc - Load A from D4.
$03/D90A 9D 04 2A STA $2A04,x[$7E:2A97] A:001E X:0093 Y:001E P:envMxdizc - Store A in Slot's Timer
$03/D90D A5 D5 LDA $D5    [$00:00D5] A:001E X:0093 Y:001E P:envMxdizc - Load A from D5.
$03/D90F 9D 05 2A STA $2A05,x[$7E:2A98] A:0000 X:0093 Y:001E P:envMxdiZc - Store A in Slot's Timer (2).
$03/D912 A9 40 LDA #$40 A:0000 X:0093 Y:001E P:envMxdiZc - Load 40 (Stop) into A.
$03/D914 9D 06 2A STA $2A06,x[$7E:2A99] A:0040 X:0093 Y:001E P:envMxdizc - Store A in Slot's Status to Remove after Timer elapses?
$03/D917 A5 CF LDA $CF    [$00:00CF] A:0040 X:0093 Y:001E P:envMxdizc - Load A from CF.
$03/D919 0A ASL A A:0007 X:0093 Y:001E P:envMxdizc - Multiply A.
$03/D91A AA TAX A:000E X:0093 Y:001E P:envMxdizc - Transfer A to X.
$03/D91B BD EB 29 LDA $29EB,x[$7E:29F9] A:000E X:000E Y:001E P:envMxdizc - Load A from Slot's current Statuses.
$03/D91E 09 80 ORA #$80 A:0040 X:000E Y:001E P:envMxdizc - Add 80 to A.
$03/D920 9D EB 29 STA $29EB,x[$7E:29F9] A:00C0 X:000E Y:001E P:eNvMxdizc - Store A in Slot's Current Statuses.
$03/D923 60 RTS A:00C0 X:000E Y:001E P:eNvMxdizc - Return

This is an interesting bit of information. How this appears to work is that it loads Stop and its compatriot parts into a timer. What is most intriguing about this is we now know that Stop is measured in increments of 3. Stop's initial power is 10. This makes it last for 1E or 30 ticks. Where as the power of the Golden Hourglass is 200 making it worth 600 ticks.


1232
I was wondering why those palettes were listed as 00. Another great find Chillyfeez!

1233
Protect Routine

Code: [Select]
$03/D84F AD 2A 27 LDA $272A  [$7E:272A] A:0003 X:001A Y:0000 P:envMxdizc - Load Target's Physical Defense Base into A.
$03/D852 C9 FF CMP #$FF A:0011 X:001A Y:0000 P:envMxdizc - Is it FF?
$03/D854 D0 03 BNE $03    [$D859] A:0011 X:001A Y:0000 P:envMxdizc - If not branch to 03D859
-------------------------------------------------------------------------------------------------------------------------------------------
$03/D856 4C 2D E0 JMP $E02D  [$03:E02D] A:00FF X:001A Y:0000 P:envMxdiZC - Jump to Magic Fail Routine.
-----------------------------------------------------------------------------------------------------------------------------------------
$03/D859 AD 00 18 LDA $1800  [$7E:1800] A:0011 X:001A Y:0000 P:envMxdizc - Load Current Encounter
$03/D85C C9 B7 CMP #$B7 A:0004 X:001A Y:0000 P:envMxdizc - Is it Zeromus?
$03/D85E D0 05 BNE $05    [$D865] A:0004 X:001A Y:0000 P:envMxdizc - If not branch to 03D865 (This is what Phoenix must have been referring to)
------------------------------------------------------------------------------------------------------------------------------------------------
$03/D860 AD 01 18 LDA $1801  [$7E:1801] A:00B7 X:001A Y:0000 P:envMxdiZC - Load Current Encounter Byte 2.
$03/D863 D0 0D BNE $0D    [$D872] A:0000 X:001A Y:0000 P:envMxdiZC - If it is 01 (causing the flag to activate) branch to 03D872.
----------------------------------------------------------------------------------------------------------------------------------------------
$03/D865 18 CLC A:0004 X:001A Y:0000 P:envMxdizc - Clear Carry Flag
$03/D866 AD 2A 27 LDA $272A  [$7E:272A] A:0004 X:001A Y:0000 P:envMxdizc - Load Target's Physical Defense Base into A.
$03/D869 69 05 ADC #$05 A:0011 X:001A Y:0000 P:envMxdizc - Add 05 to A.
$03/D86B 90 02 BCC $02    [$D86F] A:0016 X:001A Y:0000 P:envMxdizc - Branch if Carry is Clear to 03D86F.
----------------------------------------------------------------------------------------------------------------------------------------------------------
(Not sure how to get there.)
-----------------------------------------------------------------------------------------------------------------------------------------------------------
$03/D86F 8D 2A 27 STA $272A  [$7E:272A] A:0016 X:001A Y:0000 P:envMxdizc - Store A in Target's Physical Defense Base.
$03/D872 60 RTS A:0016 X:001A Y:0000 P:envMxdizc - Return

Shell Routine

Code: [Select]
$03/D873 AD 24 27 LDA $2724  [$7E:2724] A:0003 X:001C Y:0000 P:envMxdizc - Load Target's Magic Defense Base into A.
$03/D876 C9 FF CMP #$FF A:0010 X:001C Y:0000 P:envMxdizc - Is it FF?
$03/D878 D0 03 BNE $03    [$D87D] A:0010 X:001C Y:0000 P:envMxdizc - If not branch to 03D87D
--------------------------------------------------------------------------------------------------------------------------
(Covered Above)
----------------------------------------------------------------------------------------------------------------------------
$03/D87D AD 00 18 LDA $1800  [$7E:1800] A:0010 X:001C Y:0000 P:envMxdizc - Load Current encounter
$03/D880 C9 B7 CMP #$B7 A:00B7 X:001C Y:0000 P:eNvMxdizc - Is it Zeromus?
$03/D882 D0 05 BNE $05    [$D889] A:00B7 X:001C Y:0000 P:envMxdiZC - If not branch to 03D889.
----------------------------------------------------------------------------------------------------------------------------------------------
(Covered Above)
-------------------------------------------------------------------------------------------------------------------------------------------------
$03/D889 18 CLC A:0000 X:001C Y:0000 P:envMxdiZC - Clear Carry Flag.
$03/D88A AD 24 27 LDA $2724  [$7E:2724] A:0000 X:001C Y:0000 P:envMxdiZc - Load Target's Magic Defense Base.
$03/D88D 69 03 ADC #$03 A:0010 X:001C Y:0000 P:envMxdizc - Add 03 to A.
$03/D88F 90 02 BCC $02    [$D893] A:0013 X:001C Y:0000 P:envMxdizc - Branch if Carry Flag is clear to 03D88F.
$03/D893 8D 24 27 STA $2724  [$7E:2724] A:0013 X:001C Y:0000 P:envMxdizc - Store A in Target's Magic Defense Base.
$03/D896 60 RTS A:0013 X:001C Y:0000 P:envMxdizc - Return


Not many surprises here. Simple confirmation of what Phoenix said a long time ago about being unable to use Protect and Shell to increase defense if in the Zeromus encounter. Aside from that everything else there is pretty par for the course.

As noted before in another thread you can easily change what Protect and Shell increases (or sets if you change the LDA to something else entirely if you want to have a Mage character load their Wisdom or Will into it or something (if such is the case you may even want to change the ADC into a ASL to double it since 99 Defense at the end game is probably weaker than what they currently have on)

As mentioned before elsewhere you could even recreate TMPR (Temper) from FFI (No, I don't mean a broken spell! I mean its intended effect.) to look at 271B and add +1 to that on each cast.

1234
Oh, I'm not sure if you ever finalized this, but should the most recent editor have Lunar/Underground enemy AI Scripts? Or is that still in the works?

1235
I thought Magic Barrier only triggered when the person who has it is on drops into critical?

1236
Final Fantasy IV Research & Development / Re: How do summons work?
« on: September 22, 2013, 11:54:48 AM »
Oh, I have no idea, I would just expect a monster that large to be out of scope for what could be set and chosen. I could be wrong though.

1237
Final Fantasy IV Research & Development / Re: How do summons work?
« on: September 20, 2013, 11:24:04 AM »
You have done incredible work Chillyfeez! Now we can modify Summons as we will to whatever monster we wish (Zeromus withstanding).

1238
Final Fantasy IV Research & Development / Re: How do summons work?
« on: September 18, 2013, 09:59:25 PM »
That is great news on the free space! Your documentation looks pretty defined moving forward. This is going quite well it appears.

1239
I was wrong. I thought the Status to Inflict was sequential, one after the other, but it's not. It's set by the byte it will occupy. So you and Phoenix were correct. Curse is not considered in the check (I just tested it) because it is considered the second byte.

I know what you mean by special attributes. It's written into their AI Codes rather than their initial data or formulaic manner. The Charm and Float subtracting check seems to take those two status away from consideration. As not to touch them in the final equation, (the end result will be added onto them if applicable). At least as far as I can make out.


As the Heal Routine for some reason appears to be over 200 bytes long... I'm going to skip that one for now (I can't see gleaning anywhere near as useful information from that as I did with the normal attack routine) and go to the Shape Changing Routine which is a fair amount more compact.

Shape Changing Routine

Code: [Select]
$03/D82A AD 2B 27 LDA $272B  [$7E:272B] A:0003 X:0018 Y:0000 P:envMxdizc - Load Target's Status Immunity 1.
$03/D82D 2D A3 28 AND $28A3  [$7E:28A3] A:0030 X:0018 Y:0000 P:envMxdizc - Check it against Status to Inflict 1.
$03/D830 D0 10 BNE $10    [$D842] A:0000 X:0018 Y:0000 P:envMxdiZc - Branch if equal to 03D842.
$03/D832 AD 03 27 LDA $2703  [$7E:2703] A:0000 X:0018 Y:0000 P:envMxdiZc - Load Target's Status Byte 1.
$03/D835 2D A3 28 AND $28A3  [$7E:28A3] A:0000 X:0018 Y:0000 P:envMxdiZc - Check it against Status to Inflict 1.
$03/D838 D0 0B BNE $0B    [$D845] A:0000 X:0018 Y:0000 P:envMxdiZc - If equal go to 03D845.
$03/D83A AD 03 27 LDA $2703  [$7E:2703] A:0000 X:0018 Y:0000 P:envMxdiZc - Load Target's Status Byte 1.
$03/D83D CD A3 28 CMP $28A3  [$7E:28A3] A:0000 X:0018 Y:0000 P:envMxdiZc - Compare it against Status to Inflict 1.
$03/D840 90 03 BCC $03    [$D845] A:0000 X:0018 Y:0000 P:eNvMxdizc - If they are not the same go to 03D845.
------------------------------------------------------------------------------------------------------------------------------
$03/D842 4C 2D E0 JMP $E02D  [$03:E02D] A:0008 X:0018 Y:0000 P:envMxdizc - Jump to Subroutine (which eventually Returns on its own accord out of the Routines)
-------------------------------------------------------------------------------------------------------------------------------
$03/D845 AD 03 27 LDA $2703  [$7E:2703] A:0000 X:0018 Y:0000 P:eNvMxdizc  - Load Target's Status Byte 1.
$03/D848 4D A3 28 EOR $28A3  [$7E:28A3] A:0000 X:0018 Y:0000 P:envMxdiZc - ?Exclusive Or... something... or other. Just adding Status if applicable.
$03/D84B 8D 03 27 STA $2703  [$7E:2703] A:0008 X:0018 Y:0000 P:envMxdizc -  Store A in Target's Status Byte 1.
$03/D84E 60 RTS A:0008 X:0018 Y:0000 P:envMxdizc - Return

Well. That was much simpler than I anticipated. No graphics data or anything in there apparently though.

1240
Final Fantasy IV Research & Development / Re: How do summons work?
« on: September 17, 2013, 09:57:07 PM »
Ah, that is a slight bit of a shame. Oh well, I'm sure we'll get there eventually.

1241
09 Wall Routine

Code: [Select]
$03/D62C AD 06 27 LDA $2706  [$7E:2706] A:0003 X:0012 Y:0000 P:envMxdizc - Load Target's Status Byte 4.
$03/D62F 0D A4 28 ORA $28A4  [$7E:28A4] A:0000 X:0012 Y:0000 P:envMxdiZc - Add Reflect to it.
$03/D632 8D 06 27 STA $2706  [$7E:2706] A:0020 X:0012 Y:0000 P:envMxdizc - Store Reflect in Target's Status Byte 4.
$03/D635 AD 9D 28 LDA $289D  [$7E:289D] A:0020 X:0012 Y:0000 P:envMxdizc - Load 7E289D into A.
$03/D638 8D 7B 39 STA $397B  [$7E:397B] A:0000 X:0012 Y:0000 P:envMxdiZc - Store A in 7E397B.
$03/D63B A9 08 LDA #$08 A:0000 X:0012 Y:0000 P:envMxdiZc - Load 08 into A.
$03/D63D 85 D6 STA $D6    [$00:00D6] A:0008 X:0012 Y:0000 P:envMxdizc - Store A in D6.
$03/D63F A5 CF LDA $CF    [$00:00CF] A:0008 X:0012 Y:0000 P:envMxdizc - Load A from CF.
$03/D641 20 36 9E JSR $9E36  [$03:9E36] A:0000 X:0012 Y:0000 P:envMxdiZc - Jump to Subroutine.
$03/D644 A9 0F LDA #$0F A:0000 X:001E Y:001E P:envMxdizc - Load 0F into A.
$03/D646 20 C8 85 JSR $85C8  [$03:85C8] A:000F X:001E Y:001E P:envMxdizc - Jump to Subroutine.
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~`
(There's a lot of mostly useless stuff in here, but this part is useful for our needs.)

$03/9F34 69 1E ADC #$1E A:0000 X:0300 Y:0010 P:envMxdiZc - Add 1E to A. 1E is the timer of Wall. (Then stored in A9)
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
$03/D649 A9 40 LDA #$40 A:0000 X:000F Y:001E P:envMxdiZc - Load 40 into A.
$03/D64B 9D 06 2A STA $2A06,x[$7E:2A15] A:0040 X:000F Y:001E P:envMxdizc - Store A in 7E2A15
$03/D64E A5 CF LDA $CF    [$00:00CF] A:0040 X:000F Y:001E P:envMxdizc - Load A from CF.
$03/D650 0A ASL A A:0000 X:000F Y:001E P:envMxdiZc - Divide A by 2.
$03/D651 AA TAX A:0000 X:000F Y:001E P:envMxdiZc - Transfer A to X.
$03/D652 BD EB 29 LDA $29EB,x[$7E:29EB] A:0000 X:0000 Y:001E P:envMxdiZc - Load A from 7E29EB.
$03/D655 09 04 ORA #$04 A:0040 X:0000 Y:001E P:envMxdizc - Add 04.
$03/D657 9D EB 29 STA $29EB,x[$7E:29EB] A:0044 X:0000 Y:001E P:envMxdizc Store A in 7E29EB.
$03/D65A 60 RTS A:0044 X:0000 Y:001E P:envMxdizc

Well that was interesting. So in one of these Dreadfully Dull looping jumps it eventually breaks out of it to show the timer for Wall. I should go back and see if I can't find the timer for Sleep/Paralyze in that case.

 :edit: No, I cannot. It is so deeply buried it seems that I can barely even find when it changes. It's in the middle somewhere of the looping portions that I can't seem to locate it.

1242
Final Fantasy IV Research & Development / Re: How do summons work?
« on: September 17, 2013, 07:25:44 PM »
So with this do you now know the graphic pointers to the Summoned Monsters? It would be great to be able to have the player fight a summon (akin to FF4A's Lunar Ruins) like Shiva or Ramuh.

1243
07 Immobilizing Routine

Code: [Select]
$03/D5B6 A9 04 LDA #$04 A:0003 X:000E Y:FFFF P:envMxdizc - Load 04 into A.
$03/D5B8 85 D6 STA $D6    [$00:00D6] A:0004 X:000E Y:FFFF P:envMxdizc - Store A in D6.
$03/D5BA A5 CF LDA $CF    [$00:00CF] A:0004 X:000E Y:FFFF P:envMxdizc - Load A from CF.
$03/D5BC 20 36 9E JSR $9E36  [$03:9E36] A:0008 X:000E Y:FFFF P:envMxdizc - Jump to Subroutine.
$03/D5BF A9 03 LDA #$03 A:0000 X:0029 Y:0029 P:envMxdizc - Load 03 into A.
$03/D5C1 20 69 85 JSR $8569  [$03:8569] A:0003 X:0029 Y:0029 P:envMxdizc - Jump to Subroutine.
$03/D5C4 AE 98 35 LDX $3598  [$7E:3598] A:0000 X:0029 Y:0029 P:envMxdiZc - Load X from 7E3598.
$03/D5C7 BD 06 2A LDA $2A06,x[$7E:2AB1] A:0000 X:00AB Y:0029 P:envMxdizc - Load A from 7E2AB1.
$03/D5CA D0 29 BNE $29    [$D5F5] A:0000 X:00AB Y:0029 P:envMxdiZc - Seems to pass because it reads 00 so it is considered Equal, if not equal branch to 03D5F5.
$03/D5CC AD 2C 27 LDA $272C  [$7E:272C] A:0000 X:00AB Y:0029 P:envMxdiZc - Load Target's Status Immunity 2.
$03/D5CF 2D A4 28 AND $28A4  [$7E:28A4] A:0000 X:00AB Y:0029 P:envMxdiZc - Is it the same as the Second Status to Inflict?
$03/D5D2 D0 21 BNE $21    [$D5F5] A:0000 X:00AB Y:0029 P:envMxdiZc - If not branch to 03D5F5.
$03/D5D4 AD 03 27 LDA $2703  [$7E:2703] A:0000 X:00AB Y:0029 P:envMxdiZc - Load Target's Status Byte 1.
$03/D5D7 85 AC STA $AC    [$00:00AC] A:0000 X:00AB Y:0029 P:envMxdiZc - Store it in AC.
$03/D5D9 AD 04 27 LDA $2704  [$7E:2704] A:0000 X:00AB Y:0029 P:envMxdiZc - Load Target's Status Byte 2.
$03/D5DC 29 BF AND #$BF A:0000 X:00AB Y:0029 P:envMxdiZc - Ignore Flying or Charm
$03/D5DE 85 AB STA $AB    [$00:00AB] A:0000 X:00AB Y:0029 P:envMxdiZc - Store it in AB.
$03/D5E0 AD A3 28 LDA $28A3  [$7E:28A3] A:0000 X:00AB Y:0029 P:envMxdiZc - Load Status to Inflict 1 into A.
$03/D5E3 85 AE STA $AE    [$00:00AE] A:0000 X:00AB Y:0029 P:envMxdiZc - Store it in AE.
$03/D5E5 AD A4 28 LDA $28A4  [$7E:28A4] A:0000 X:00AB Y:0029 P:envMxdiZc - Load Status to Inflict 2 into A.
$03/D5E8 85 AD STA $AD    [$00:00AD] A:0020 X:00AB Y:0029 P:envMxdizc - Store it in AD.
$03/D5EA C2 20 REP #$20 A:0020 X:00AB Y:0029 P:envMxdizc - Reset Processor Status.
$03/D5EC A5 AB LDA $AB    [$00:00AB] A:0020 X:00AB Y:0029 P:envmxdizc Load Target's Status Byte 2 (after Charm and Flying have been removed) into A.
$03/D5EE C5 AD CMP $AD    [$00:00AD] A:0000 X:00AB Y:0029 P:envmxdiZc - Compare it to Status Byte 2.
$03/D5F0 90 06 BCC $06    [$D5F8] A:0000 X:00AB Y:0029 P:eNvmxdizc - If equal, branch to 03D5F8.
------------------------------------------------------------------------------------------------------------------------------------------------------

-----------------------------------------------------------------------------------------------------------------------------------------------------
$03/D5F8 A5 CE LDA $CE    [$00:00CE] A:0000 X:00AB Y:0029 P:eNvmxdizc - Load A from CE.
$03/D5FA 10 08 BPL $08    [$D604] A:0883 X:00AB Y:0029 P:envmxdizc - Branch if Plus to 03D604.
$03/D604 7B TDC A:0883 X:00AB Y:0029 P:envmxdizc - Transfer Direct Page into A.
$03/D605 E2 20 SEP #$20 A:0000 X:00AB Y:0029 P:envmxdiZc - Set Processor Status.
$03/D607 AD 04 27 LDA $2704  [$7E:2704] A:0000 X:00AB Y:0029 P:envMxdiZc - Load A from Target's Status Byte 2.
$03/D60A 0D A4 28 ORA $28A4  [$7E:28A4] A:0000 X:00AB Y:0029 P:envMxdiZc - Add the value from Status to Inflict 2.
$03/D60D 8D 04 27 STA $2704  [$7E:2704] A:0020 X:00AB Y:0029 P:envMxdizc - Store it in Target's Status Byte 2.
$03/D610 AE 98 35 LDX $3598  [$7E:3598] A:0020 X:00AB Y:0029 P:envMxdizc - Load X from 7E3598.
$03/D613 A5 D4 LDA $D4    [$00:00D4] A:0020 X:00AB Y:0029 P:envMxdizc - Load A from D4.
$03/D615 9D 04 2A STA $2A04,x[$7E:2AAF] A:0029 X:00AB Y:0029 P:envMxdizc - Store A in to Character's Speed Record.
$03/D618 A5 D5 LDA $D5    [$00:00D5] A:0029 X:00AB Y:0029 P:envMxdizc - Load A from D5.
$03/D61A 9D 05 2A STA $2A05,x[$7E:2AB0] A:0000 X:00AB Y:0029 P:envMxdiZc - Store A in Character's Speed Record 2.
$03/D61D A9 40 LDA #$40 A:0000 X:00AB Y:0029 P:envMxdiZc - Load a 40 into A.
$03/D61F 9D 06 2A STA $2A06,x[$7E:2AB1] A:0040 X:00AB Y:0029 P:envMxdizc - Store A in 7E2AB1.
$03/D622 60 RTS A:0040 X:00AB Y:0029 P:envMxdizc - Return.

So from what we've seen above there is no formulaic difference between Sleep and Hold's literal statuses. They both have a stunning duration of 29. The only difference is one's ability to hit with Hold is Will based where as hitting with Sleep is Wisdom based and that's to do with their positions in the lists rather than anything else.

1244
Effect 06 - Status Routine

Code: [Select]
$03/D515 AD A3 28 LDA $28A3  [$7E:28A3] A:0003 X:000C Y:0000 P:envMxdizc - Load Status to Inflict from 7E28A3.
$03/D518 10 0A BPL $0A    [$D524] A:0004 X:000C Y:0000 P:envMxdizc - Branch if Plus to 03D524. (Death and Curse would be the branch point here)
-----------------------------------------------------------------------------------------------------------------------------------------------
$03/D51A AD 40 27 LDA $2740  [$7E:2740] A:0080 X:000C Y:0000 P:eNvMxdizc - Check Target's Creature Type.
$03/D51D 29 8A AND #$8A A:0000 X:000C Y:0000 P:envMxdiZc - Is it Machine, Spirit, or Undead?
$03/D51F F0 03 BEQ $03    [$D524] A:0000 X:000C Y:0000 P:envMxdiZc - If not, branch to 03D524.
----------------------------------------------------------------------------------------------------------------------------------------------------
$03/D521 4C B2 D5 JMP $D5B2  [$03:D5B2] A:0008 X:000C Y:0000 P:envMxdizc - Jump to 03D5B2 (which leads to a Return)
----------------------------------------------------------------------------------------------------------------------------------------------
$03/D524 AD 03 27 LDA $2703  [$7E:2703] A:0004 X:000C Y:0000 P:envMxdizc - Load Target's Status Byte 1 into A.
$03/D527 85 AC STA $AC    [$00:00AC] A:0000 X:000C Y:0000 P:envMxdiZc - Store Current Status1 in AC.
$03/D529 85 A9 STA $A9    [$00:00A9] A:0000 X:000C Y:0000 P:envMxdiZc - Store Current Status1 in A9.
$03/D52B AD 04 27 LDA $2704  [$7E:2704] A:0000 X:000C Y:0000 P:envMxdiZc - Load Target's Status Byte 2 into A.
$03/D52E 85 AA STA $AA    [$00:00AA] A:0000 X:000C Y:0000 P:envMxdiZc - Store Current Status2 in AA.
$03/D530 29 BF AND #$BF A:0000 X:000C Y:0000 P:envMxdiZc - (-48 meaning it will get rid of ?Charm and Float? Maybe for other purposes, as that doesn't actually happen to the target)
$03/D532 85 AB STA $AB    [$00:00AB] A:0000 X:000C Y:0000 P:envMxdiZc - Store Current Status2 in AB.
$03/D534 AD A3 28 LDA $28A3  [$7E:28A3] A:0000 X:000C Y:0000 P:envMxdiZc - Load Status to inflict from 7E28A3.
$03/D537 85 AE STA $AE    [$00:00AE] A:0004 X:000C Y:0000 P:envMxdizc - Store it in AE.
$03/D539 AD A4 28 LDA $28A4  [$7E:28A4] A:0004 X:000C Y:0000 P:envMxdizc - Load Second Status to Inflict from 7E28A4.
$03/D53C 85 AD STA $AD    [$00:00AD] A:0000 X:000C Y:0000 P:envMxdiZc - Store it in AD.
$03/D53E C2 20 REP #$20 A:0000 X:000C Y:0000 P:envMxdiZc - Reset Processor.
$03/D540 A5 AB LDA $AB    [$00:00AB] A:0000 X:000C Y:0000 P:envmxdiZc - Load Current Status2 from AB.
$03/D542 C5 AD CMP $AD    [$00:00AD] A:0000 X:000C Y:0000 P:envmxdiZc - Compare it to Second Status to inflict from AD.
$03/D544 90 06 BCC $06    [$D54C] A:0000 X:000C Y:0000 P:eNvmxdizc - If equal, branch to 03D54C.
---------------------------------------------------------------------------------------------------------------------------------
(Appears to be the Miss or Resist Routine?)
$03/D546 7B TDC A:0400 X:000C Y:0000 P:envmxdizC -Transfer Direct Page to A?
$03/D547 E2 20 SEP #$20 A:0000 X:000C Y:0000 P:envmxdiZC - Set Processor Status.
$03/D549 4C B2 D5 JMP $D5B2  [$03:D5B2] A:0000 X:000C Y:0000 P:envMxdiZC - Jump to 03D5B2.
-----------------------------------------------------------------------------------------------------------------------------------
$03/D54C 7B TDC A:0000 X:000C Y:0000 P:eNvmxdizc - Transfer Direct Page to A?
$03/D54D E2 20 SEP #$20 A:0000 X:000C Y:0000 P:envmxdiZc  - Set Processor Status.
$03/D54F AD 2B 27 LDA $272B  [$7E:272B] A:0000 X:000C Y:0000 P:envMxdiZc - Load Target's Status Immunity1 into A.
$03/D552 2D A3 28 AND $28A3  [$7E:28A3] A:00B9 X:000C Y:0000 P:eNvMxdizc - Check it against Status to Inflict1.
$03/D555 D0 06 BNE $06    [$D55D] A:0000 X:000C Y:0000 P:envMxdiZc - If bits aligned branch to 03D55D.
$03/D557 AD 2C 27 LDA $272C  [$7E:272C] A:0000 X:000C Y:0000 P:envMxdiZc - Load Target's Status Immunity2 into A.
$03/D55A 2D A4 28 AND $28A4  [$7E:28A4] A:0030 X:000C Y:0000 P:envMxdizc - Check it against Status to Inflict2.
$03/D55D D0 53 BNE $53    [$D5B2] A:0000 X:000C Y:0000 P:envMxdiZc - If bits aligned branch to 03D5B2.
$03/D55F AD 03 27 LDA $2703  [$7E:2703] A:0000 X:000C Y:0000 P:envMxdiZc - Load Target's Status Byte 1 into A.
$03/D562 05 AE ORA $AE    [$00:00AE] A:0000 X:000C Y:0000 P:envMxdiZc - Somehow adds the Stored Status to inflict from AE.
$03/D564 8D 03 27 STA $2703  [$7E:2703] A:0004 X:000C Y:0000 P:envMxdizc - Store A in Target's Status Byte 1.
$03/D567 AD 04 27 LDA $2704  [$7E:2704] A:0004 X:000C Y:0000 P:envMxdizc - Load Target's Status Byte 2 into A.
$03/D56A 05 AD ORA $AD    [$00:00AD] A:0000 X:000C Y:0000 P:envMxdiZc - Somehow adds the Stored Status2 to inflict from AD.
$03/D56C 8D 04 27 STA $2704  [$7E:2704] A:0000 X:000C Y:0000 P:envMxdiZc - Store A in Target's Status Byte 2.
$03/D56F AD A4 28 LDA $28A4  [$7E:28A4] A:0000 X:000C Y:0000 P:envMxdiZc - Load A from Status to Inflict2.
$03/D572 29 28 AND #$28 A:0000 X:000C Y:0000 P:envMxdiZc - Is it Charm or Paralyze
$03/D574 F0 3A BEQ $3A    [$D5B0] A:0000 X:000C Y:0000 P:envMxdiZc - Branch if not to 03D5B0.
--------------------------------------------------------------------------------------------------------------------------------------------
$03/D576 AD 04 27 LDA $2704  [$7E:2704] A:0008 X:000C Y:0000 P:envMxdizc - Load A from Target's Status Byte 2.
$03/D579 29 FB AND #$FB A:000C X:000C Y:0000 P:envMxdizc - ?? (-4 somehow?) Replaces Berserk with Charm.
$03/D57B 8D 04 27 STA $2704  [$7E:2704] A:0008 X:000C Y:0000 P:envMxdizc  - Store A in Target's Status Byte 2.
$03/D57E A5 CF LDA $CF    [$00:00CF] A:0008 X:000C Y:0000 P:envMxdizc - Load CF into A.
$03/D580 85 DF STA $DF    [$00:00DF] A:0008 X:000C Y:0000 P:envMxdizc - Store A in DF.
$03/D582 A9 15 LDA #$15 A:0008 X:000C Y:0000 P:envMxdizc - Load 15 into A.
$03/D584 85 E1 STA $E1    [$00:00E1] A:0015 X:000C Y:0000 P:envMxdizc - Store A in E1.
$03/D586 20 E0 83 JSR $83E0  [$03:83E0] A:0015 X:000C Y:0000 P:envMxdizc - Jump to Subroutine.
$03/D589 A6 E3 LDX $E3    [$00:00E3] A:0000 X:0000 Y:0000 P:envMxdiZc - Load the value in E3 into X.
$03/D58B 8E 30 35 STX $3530  [$7E:3530] A:0000 X:00A8 Y:0000 P:envMxdizc - Store X in 7E3530.
$03/D58E A9 03 LDA #$03 A:0000 X:00A8 Y:0000 P:envMxdizc - Load 03 into A.
$03/D590 20 69 85 JSR $8569  [$03:8569] A:0003 X:00A8 Y:0000 P:envMxdizc - Jump to Subroutine.
$03/D596 AD 04 27 LDA $2704  [$7E:2704] A:0000 X:00AB Y:0000 P:envMxdizc - Target's Status Byte 2.
$03/D599 29 20 AND #$20 A:0008 X:00AB Y:0000 P:envMxdizc - Is it Paralyze?
$03/D59B F0 13 BEQ $13    [$D5B0] A:0000 X:00AB Y:0000 P:envMxdiZc - If not branch to 03D5B0
-----------------------------------------------------------------------------------------------------------------------
$03/D59D AD 04 27 LDA $2704  [$7E:2704] A:0020 X:00AB Y:FFFF P:envMxdizc - Load Target's Status Byte 2.
$03/D5A0 29 F7 AND #$F7 A:0020 X:00AB Y:FFFF P:envMxdizc - Get rid of Charm, if affecting Target.
$03/D5A2 8D 04 27 STA $2704  [$7E:2704] A:0020 X:00AB Y:FFFF P:envMxdizc - Store Paralyze in Status Byte 2.
$03/D5A5 A9 01 LDA #$01 A:0020 X:00AB Y:FFFF P:envMxdizc - Load 01 into A.
$03/D5A7 9D 04 2A STA $2A04,x[$7E:2AAF] A:0001 X:00AB Y:FFFF P:envMxdizc - Store in 7E2A04
$03/D5AA 9E 05 2A STZ $2A05,x[$7E:2AB0] A:0001 X:00AB Y:FFFF P:envMxdizc - Store Zero in 7E2A05.
$03/D5AD 9E 06 2A STZ $2A06,x[$7E:2AB1] A:0001 X:00AB Y:FFFF P:envMxdizc - Store Zero in 7E2A06
-----------------------------------------------------------------------------------------------------------------------
$03/D5B0 80 03 BRA $03    [$D5B5] A:0000 X:00AB Y:0000 P:envMxdiZc - Always Branch to 03D5B5.
--------------------------------------------------------------------------------------------------------------------------------------------
$03/D5B2 20 2D E0 JSR $E02D  [$03:E02D] A:0000 X:000C Y:0000 P:envMxdiZC - Jump to Subroutine
------------------------------------------------------------------------------------------------------------------------------------------
$03/D5B5 60 RTS A:0000 X:000C Y:0000 P:envMxdiZc - Return.


Now this is strange. As far as I can see and from my own tests there is nothing that prevents this from working on any specific monster type. Mute, Charm, Berserk, Float works perfectly fine on Zombie-type, Machine-type,  and Spirits. They all use the formula that says it shouldn't work on them. The only thing I can think of is that Yousei may have looked at the start of the data, not paying attention that this only occurs if the status to inflict is Death or Curse.
So this...

    06 status: various, does not affect spirits, undead, or machines

Is debunked. It works on anything that doesn't resist it.

However the purpose of the separate routine for statuses with timers make sense as this formula does not appear to have any safety drop for them. Even its special coding for Paralyze doesn't work (do I foresee some Free Code in our future?) the enemy will never properly recover from Paralyze when used from this routine. That is a freed up 19 bytes for us to use if we ever wanted to add something else special to the Status Routine. Even the Creature Type check at the start is rather redundant as you can set it easily enough in the monster's individual status, freeing up even more bytes.

1245
Final Fantasy IV Research & Development / Re: How do summons work?
« on: September 17, 2013, 02:34:21 PM »
That is essentially what I did, but for some reason at the time I didn't have a clear grasp on what I was seeing. Only in the past few weeks have I really applied myself to understanding what I'm reading instead of skipping through until I find something that seems familiar.

All in all this is a great start, I'm glad to see this work getting underway.