Difference between revisions of "FF7/Field/Script/Opcodes/00 RET"

From Final Fantasy Inside
< FF7‎ | Field‎ | Script‎ | Opcodes
Jump to navigation Jump to search
my_wiki>Qhimm
 
my_wiki>BukTop
m (1 revision imported)
(No difference)

Revision as of 12:34, 4 April 2018

  • Opcode: 0x00
  • Short name: RET
  • Long name: Return from request / Halt

Memory layout

0x00

Arguments

None.

Description

When an 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 priority). If the execution was requested via a synchronous call (REQEW or 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 entry scripts.