Changes

Jump to navigation Jump to search

FF7/Field/Script/Opcodes/8E MOD2

150 bytes added, 17:56, 24 March 2018
Created page with "* Opcode: '''0x8E''' * Short name: '''MOD2''' * Long name: Modulus (16-bit) ==== Memory layout ==== {| style="border: 1px solid black; border-collapse: collapse" border="1..."
* 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.
Anonymous user

Navigation menu