Difference between revisions of "FF7/Field/Script/Opcodes/7D DEC2!"

From QhimmWiki
Jump to navigation Jump to search
Qhimm>Halkun
 
ffrtt>BukTop
m (2 revisions imported)
 
(2 intermediate revisions by 2 users not shown)
(No difference)

Latest revision as of 04:17, 23 May 2019

  • Opcode: 0x7D
  • Short name: DEC2!
  • Long name: Saturated Decrement (16-bit)

Memory layout

0x7D 0/D Dest

Arguments

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

Description

Decreases the value in “Dest” by 1. The result is capped at -32768.