Anonymous

Changes

From Final Fantasy Inside

FF7/Field/Script/Opcodes/8E MOD2

150 bytes added, 05:17, 23 May 2019
m
3 revisions imported
* Long name: Modulus (16-bit)
==== Memory layout ==== {| style="border: 1px solid black; border-collapse: collapse" border="1" cellspacing="1" cellpadding="3" style="border: 1px solid black; border-collapse: collapse;"
! width="40" | 0x8E
! width="40" | ''D/S''
|}
==== Arguments ==== * '''const Bit[4]''' ''D''<nowiki>: Destination bank</nowiki>* '''const Bit[4]''' ''S''<nowiki>: Source bank</nowiki>* '''const UByte''' ''Dest''<nowiki>: Contains the nominator of the division and receives the remainder.</nowiki>* '''const SWord''' ''Den''<nowiki>: The denominator of the division.</nowiki> ==== Description ====
==== Description ====Divides “Dest” “Dest” by “Den” “Den” and stores the remainder back into “Dest”“Dest”.If the Source Bank is 0 then the “Den” “Den” is the denominator.If the Source Bank is an 16 bit bank, then the “Den” “Den” is the address in that bank where the denominator is.