Contemporary FE style talk and support commands

“Contemporary FE style Support Fix” collides with UnitActionRework.
“Contemporary FE style Support Fix” is specifying the position of the Stack.
UnitActionRework does not operate correctly because it changes the placement of Stack.

push {r4-r5}

-ldr r4,[sp,#0x18]   @=0x203a958  //<< here
+ldr r4,=0x203A958                //<< here
mov r5,#0x17        @(bought from armory - guaranteed safe!)
strb r5,[r4,#0x11]
ldr r4,[sp,#0x10]   @pointer to "next routine" - we change this to take us back into the unit menu
ldr r5, [r4,#4]
sub r5, #0x30
str r5, [r4,#4]
ldr r4,=0x202bce9   @mark unit has "moved"
mov r5,#80          @unknown, but likely unused
strb r5,[r4]
ldr r4,=0x8085A54
mov lr,r4
.short 0xf800
pop {r4,r5}
....

Write “ldr r4, =0x203a958” instead of “ldr r4, [sp, #0x14]”.
If it is there, it will operate correctly.
It seems that there is no problem even if “ldr r4, [sp, #0x10]” is left as it is.

There is a problem only for “ldr r4, [sp, #0x14]”.

I encountered this problem with FE8J and ActionRework.
Even after the support conversation, UnitActionID was not replaced from 0xF to 0x17, so for every reason, we pressed the B button to generate an infinite support conversation.

I fix the code.

FE8J

FE8U

1 Like