Anonymous

Changes

From Final Fantasy Inside

FF7/Field/Script/Opcodes/00 RET

974 bytes added, 13:38, 27 July 2005
no edit summary
* Opcode: '''0x00'''
* Short name: '''RET'''
* Long name: Return from request / Halt

==== Memory layout ====
{| border="1" cellspacing="1" cellpadding="3" style="border: 1px solid black; border-collapse: collapse;"
! width="40" | 0x00
|}

==== Arguments ====
None.

==== Description ====
When an [[FF7/Field/Script/Entity|entity]]'s script is being executed as part of a request (function call), the return opcode will cause current execution to halt and return to whatever the entity was previously executing (at some lower [[FF7/Field/Script/Priorities|priority]]). If the execution was requested via a synchronous call ([[FF7/Field/Script/Opcodes/03 REQEW|REQEW]] or [[FF7/Field/Script/Opcodes/06 PRQEW|PRQEW]]), the completion of execution is also signalled to the calling entity which can resume execution.

If ''return'' is used when executing at base priority, execution will simply halt. This is what happens in the [[FF7/Field/Scripts/Entry script|entry scripts]].
Anonymous user