FF7/Field/Script/Opcodes/39 GOLDu

From Final Fantasy Inside
< FF7‎ | Field‎ | Script‎ | Opcodes
Revision as of 05:16, 23 May 2019 by BukTop (talk | contribs) (4 revisions imported)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
  • 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.