Changes

Jump to navigation Jump to search

FF7/Field/Script/Opcodes/79 MINUS2!

200 bytes added, 01:40, 3 September 2006
no edit summary
* '''const Bit[4]''' ''D'': Destination bank
* '''const Bit[4]''' ''S'': Source bank
* '''const UByte''' ''Dest'': The destination variable, to which the operand is addedsubtracted.* '''const UByteSWord''' ''Oper'': The operand, added to be subtracted from the destination.
==== Description ====
Adds two numbers together Subtracts "Oper" from "Dest" and stores the result back into "Dest". The result of the addition subtraction is capped at -32768. Oddly enough the result is not capped at 255the positive end, 32767, so subtracting a large negative number from a large positive number will still produce wrap-around.If the Source Bank is 0 then the “Oper” is added to subtracted from the destination value.If the Source Bank is an 8 16 bit bank, then the “Oper” is the address in that bank where the operand is.
Anonymous user

Navigation menu