Changes
Jump to navigation
Jump to search
no edit summary
* Opcode: '''0x12'''
* Short name: '''JMPB'''
* Long name: Jump back
==== Memory layout ====
{| border="1" cellspacing="1" cellpadding="3" style="border: 1px solid black; border-collapse: collapse;"
! width="40" | 0x10
! width="40" | ''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 [[FF7/Field/Script/Opcodes/C7 SOLID|SOLID]] and [[FF7/Field/Script/Opcodes/24 WAIT|WAIT]] lines are repeated indefinitely.
<pre>
SOLID (01)
WAIT (70,00)
JMPF (05)
</pre>
If a jump longer than 0xFF is required, use [[FF7/Field/Script/Opcodes/13 JMPBL|JMPBL]] instead.
* Short name: '''JMPB'''
* Long name: Jump back
==== Memory layout ====
{| border="1" cellspacing="1" cellpadding="3" style="border: 1px solid black; border-collapse: collapse;"
! width="40" | 0x10
! width="40" | ''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 [[FF7/Field/Script/Opcodes/C7 SOLID|SOLID]] and [[FF7/Field/Script/Opcodes/24 WAIT|WAIT]] lines are repeated indefinitely.
<pre>
SOLID (01)
WAIT (70,00)
JMPF (05)
</pre>
If a jump longer than 0xFF is required, use [[FF7/Field/Script/Opcodes/13 JMPBL|JMPBL]] instead.