FF7/Field/Script/Opcodes/7A INC!

From Final Fantasy Inside
< FF7‎ | Field‎ | Script‎ | Opcodes
Revision as of 01:43, 3 September 2006 by my_wiki>Halkun
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
  • Opcode: 0x7A
  • Short name: INC!
  • Long name: Saturated Increment (8-bit)

Memory layout

0x7A 0/D Dest

Arguments

  • const Bit[4] D: Destination bank
  • const UByte Dest: The destination address in the bank where the variable is incremented.

Description

Increments the value in “Dest” by 1. The result is capped at 255.