Difference between revisions of "FF7/Field/Script/Opcodes/39 GOLDu"

From Final Fantasy Inside
< FF7‎ | Field‎ | Script‎ | Opcodes
Jump to navigation Jump to search
my_wiki>Synergy Blades
m (cap)
m (4 revisions imported)
 
(2 intermediate revisions by 2 users not shown)
Line 13: Line 13:
 
{| border="1" cellspacing="1" cellpadding="3" style="border: 1px solid black; border-collapse: collapse;"
 
{| border="1" cellspacing="1" cellpadding="3" style="border: 1px solid black; border-collapse: collapse;"
 
! width="40" | 0x39
 
! width="40" | 0x39
! width="40" | ''B''
+
! width="50" | ''B / 0''
 
! width="40" | ''A''
 
! width="40" | ''A''
 
! width="120" | ''0''
 
! width="120" | ''0''
Line 27: Line 27:
 
Increase by an amount found in memory:
 
Increase by an amount found in memory:
  
* '''const UByte''' ''B'': Source bank.
+
* '''const Bit[4]''' ''B'': Source bank.
 
* '''const UByte''' ''A'': Source address.
 
* '''const UByte''' ''A'': Source address.
 
* '''const UByte[3]''' ''0'': Three zero bytes.
 
* '''const UByte[3]''' ''0'': Three zero bytes.

Latest revision as of 05:16, 23 May 2019

  • Opcode: 0x39
  • Short name: GOLDu
  • Long name: Gil Up

Memory layout

0x39 0 A


0x39 B / 0 A 0

Arguments

Increase by a constant amount:

  • const UByte 0: Zero.
  • const ULong A: Amount to increase.

Increase by an amount found in memory:

  • const Bit[4] B: Source bank.
  • const UByte A: Source address.
  • const UByte[3] 0: Three zero bytes.

Description

Increases the amount of gil by a constant amount, or by an amount found in the source bank B and address A.

The total gil is capped above by 0xFFFFFFFF; attempts to increment further will fail.