<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://wiki.ffrtt.ru/index.php?action=history&amp;feed=atom&amp;title=FF7%2FField%2FScript%2FOpcodes%2FD4_SIN</id>
	<title>FF7/Field/Script/Opcodes/D4 SIN - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.ffrtt.ru/index.php?action=history&amp;feed=atom&amp;title=FF7%2FField%2FScript%2FOpcodes%2FD4_SIN"/>
	<link rel="alternate" type="text/html" href="https://wiki.ffrtt.ru/index.php?title=FF7/Field/Script/Opcodes/D4_SIN&amp;action=history"/>
	<updated>2026-08-04T07:18:12Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.32.1</generator>
	<entry>
		<id>https://wiki.ffrtt.ru/index.php?title=FF7/Field/Script/Opcodes/D4_SIN&amp;diff=5789&amp;oldid=prev</id>
		<title>Dangarfield: Creation of SIN page</title>
		<link rel="alternate" type="text/html" href="https://wiki.ffrtt.ru/index.php?title=FF7/Field/Script/Opcodes/D4_SIN&amp;diff=5789&amp;oldid=prev"/>
		<updated>2020-09-16T13:45:53Z</updated>

		<summary type="html">&lt;p&gt;Creation of SIN page&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;* Opcode: '''0xD4'''&lt;br /&gt;
* Short name: '''SIN'''&lt;br /&gt;
* Long name: SIN Calculation&lt;br /&gt;
&lt;br /&gt;
==== Memory layout ====&lt;br /&gt;
{| border=&amp;quot;1&amp;quot; cellspacing=&amp;quot;1&amp;quot; cellpadding=&amp;quot;3&amp;quot; style=&amp;quot;border: 1px solid black; border-collapse: collapse;&amp;quot;&lt;br /&gt;
! width=&amp;quot;40&amp;quot; | 0xD4&lt;br /&gt;
! width=&amp;quot;50&amp;quot; | ''B1 / B2''&lt;br /&gt;
! width=&amp;quot;40&amp;quot; | ''B3 / B4''&lt;br /&gt;
! width=&amp;quot;40&amp;quot; | ''D''&lt;br /&gt;
! width=&amp;quot;40&amp;quot; | ''M''&lt;br /&gt;
! width=&amp;quot;40&amp;quot; | ''A''&lt;br /&gt;
! width=&amp;quot;40&amp;quot; | ''S''&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
==== Arguments ====&lt;br /&gt;
&lt;br /&gt;
* '''const Bit[4]''' ''B1'': Destination bank.&lt;br /&gt;
* '''const Bit[4]''' ''B2'': Bank to retrieve ''M'', or zero if ''M'' is specified as a literal value.&lt;br /&gt;
* '''const Bit[4]''' ''B3'': Bank to retrieve ''A'', or zero if ''A'' is specified as a literal value.&lt;br /&gt;
* '''const Bit[4]''' ''B4'': Bank to retrieve ''S'', or zero if ''S'' is specified as a literal value.&lt;br /&gt;
* '''const UByte''' ''D'': Destination address.&lt;br /&gt;
* '''const UByte''' ''M'': Multiplicand, or address to retrieve value if ''B2'' is non-zero.&lt;br /&gt;
* '''const UByte''' ''A'': Addition, or address to retrieve value if ''B3'' is non-zero.&lt;br /&gt;
* '''const UByte''' ''S'': Variable for sin angle, or source address to retrieve value if ''B4'' is non-zero.&lt;br /&gt;
&lt;br /&gt;
==== Description ====&lt;br /&gt;
&lt;br /&gt;
 Var[B1][D] = ( ( Math.sin(Var[B4][S]) * M) + A) &amp;gt;&amp;gt; 12&lt;br /&gt;
&lt;br /&gt;
Creates a variable from the another variable, with SIN, a multiplicand and an addition factor&lt;/div&gt;</summary>
		<author><name>Dangarfield</name></author>
		
	</entry>
</feed>