Difference between revisions of "FF7/Field/Script/Opcodes/12 JMPB"

From Final Fantasy Inside
< FF7‎ | Field‎ | Script‎ | Opcodes
my_wiki>BukTop
m (1 revision imported)
 
(One intermediate revision by one other user not shown)
Line 1: Line 1:
 
* Opcode: '''0x12'''
 
* Opcode: '''0x12'''
* Short name: '''JMPB'''
+
* Short name: '''BACK'''
 
* Long name: Jump back
 
* Long name: Jump back
  
Line 20: Line 20:
 
SOLID (01)
 
SOLID (01)
 
WAIT (70,00)
 
WAIT (70,00)
JMPF (05)
+
BACK (05)
 
</pre>
 
</pre>
  
If a jump longer than 0xFF is required, use [[FF7/Field/Script/Opcodes/13 JMPBL|JMPBL]] instead.
+
If a jump longer than 0xFF is required, use [[FF7/Field/Script/Opcodes/13 JMPBL|LBACK]] instead.

Latest revision as of 15:43, 21 September 2025

  • Opcode: 0x12
  • Short name: BACK
  • Long name: Jump back

Memory layout

0x10 A

Arguments

  • const UByte A: Amount to jump backwards.

Description

Jumps backward in the current script a specified amount. The jump begins just before the jump opcode itself and then moves the current byte pointer back the specified number of bytes. In the following example, the SOLID and WAIT lines are repeated indefinitely.

SOLID (01)
WAIT (70,00)
BACK (05)

If a jump longer than 0xFF is required, use LBACK instead.