<!--
	Assembler Encoding for the OR instruction
	Version: 1.0.0
	Date Created:  2007-03-23
	Last Modified: 2007-06-17

	Designed for Pentium and higher x86 Processors in 32bit mode protected mode
	Optimized for speed

	Notes:
	OR operations are based on the lowest bit width operand. ORing an 8bit, 16bit, or even a 256bit value with an 8bit
	value all use the same code since the upper bits are not modified by the zero (non-existent) bits.
	Sign Extending is NOT taken into consideration since OR is a bitwise operation and ignores sign completely.

	Done list:
	o From U/S8-32,Boolean to U/S8-256,Boolean
	o From U/S8-256 to U/S-32
	o EndRegs data
	o Volatile register operations

	To Do:
	o From U/S48-256 to U/S48-256
-->
<encoding procfamily="x86" bitdepth="32" proc="P1">
	<!-- ############################################################################################################ -->
	<!-- ############################################################################################################ -->
	<!-- ############################################################################################################ -->
	<!-- InclusiveOr Mnemonic -->
	<mnemonic name="InclusiveOr" type="Assign" option="Speed">
		<!-- ********************************************************************************************************** -->
		<!-- ORing TO/FROM 8bit values -->

		<!-- $$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$ -->
		<!-- From 8bit To 8-256bit -->
		<codetypeset param0="U/S8-256" param1="U/S8" id="ORFrom8bitTo8-256bit">
			<codeset param0="M" param1="M" total="3" totalv="3"
				lostregs="al,dl" endregs="al=@0.U8" endpipe="U">
				<line code="mov dl, @0.U8" time="U 1" timev=" V1" comment="Get the destination" />
				<line code="mov al, @1.U8" time=" V1" timev="U 1" comment="Get the modifier" />
				<line code="or al, dl"     time="U 1" timev="U*1" comment="OR them together" />
				<line code="mov @0.U8, al" time="U*1"             comment="Store the result" />
			</codeset>
			<codeset param0="M" param1="R,I" total="3" totalv="2" endpipe="S">
				<line code="or @0.U8, @1.U8" time="U 3" timev=" V3" comment="OR the modifier with it" />
			</codeset>

			<codeset param0="R" param1="M" total="2" totalv="1" endpipe="S">
				<line code="or @0.U8, @1.U8" time="U 2" timev=" V2" comment="OR them together" />
			</codeset>
			<codeset param0="R" param1="R,I" total="1" totalv="0" endpipe="S">
				<line code="or @0.U8, @1.U8" time="U 1" timev=" V1" comment="OR them together" />
			</codeset>
		</codetypeset>


		<!-- $$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$ -->
		<!-- From 16-256bit To 8bit -->
		<codetypeset param0="U/S8" param1="U/S16-256" sameas="ORFrom8bitTo8-256bit" />



		<!-- ********************************************************************************************************** -->
		<!-- ORing TO/FROM 16bit values -->

		<!-- $$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$ -->
		<!-- From 16bit to 16-24bit -->
		<codetypeset param0="U/S16-24" param1="U/S16" id="ORFrom16bitTo16-24bit">
			<codeset param0="M" param1="M" total="6" totalv="5"
				lostregs="ax" endregs="ax=@1.U16" endpipe="U">
				<line code="mov ax, @1.U16" time="U 1+1" timev=" V1+1" comment="Get the modifier" />
				<line code="or @0.U16, ax"  time="U*3+1" timev="U 3+1" comment="OR them together" />
			</codeset>
			<codeset param0="M" param1="R,I" total="4" totalv="3" endpipe="S">
				<line code="or @0.U16, @1.U16" time="U 3+1" timev=" V3+1" comment="OR them together" />
			</codeset>

			<codeset param0="R" param1="M" total="3" totalv="2" endpipe="S">
				<line code="or @0.U16, @1.U16" time="U 2+1" timev=" V2+1" comment="OR them together" />
			</codeset>
			<codeset param0="R" param1="R,I" total="2" totalv="1" endpipe="S">
				<line code="or @0.U16, @1.U16" time="U 1+1" timev=" V1+1" comment="OR them together" />
			</codeset>
		</codetypeset>


		<!-- $$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$ -->
		<!-- From 24bit to 16bit -->
		<codetypeset param0="U/S16" param1="U/S24" sameas="ORFrom16bitTo16-24bit" />


		<!-- $$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$ -->
		<!-- From 16bit to 32-256bit -->
		<codetypeset param0="U/S32-256" param1="U/S16" sameas="ORFrom16bitTo16-24bit" />


		<!-- $$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$ -->
		<!-- From 32-256bit to 16bit -->
		<codetypeset param0="U/S16" param1="U/S32-256" sameas="ORFrom16bitTo16-24bit" />



		<!-- ********************************************************************************************************** -->
		<!-- ORing TO/FROM 24bit values -->

		<!-- $$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$ -->
		<!-- From 24bit to 24bit -->
		<codetypeset param0="U/S24" param1="U/S24">
			<codeset param0="M" param1="M" total="7" totalv="7"
				lostregs="ax,dx" endregs="al=@0.U8[2],dh=@0.U8[1],dl=@1.U8[2]" endpipe="U">
				<line code="mov al, @0.U8"    time="U 1" timev=" V1" comment="Get the low byte of the value" />
				<line code="mov dl, @1.U8"    time=" V1" timev="U 1" comment="Get the low byte of the modifier" />
				<line code="or al, dl"        time="U 1" timev="U*1" comment="OR together the low bytes" />
				<line code="mov dh, @1.U8[1]" time=" V1"             comment="Get the middle byte of the modifier" />
				<line code="mov ah, @0.U8[1]" time="U 1"             comment="Get the middle byte of the value" />
				<line code="mov dl, @1.U8[2]" time=" V1"             comment="Get the high byte of the modifier" />
				<line code="mov @0.U8, al"    time="U 1"             comment="Store the low byte" />
				<line code="or dh, ah"        time=" V1"             comment="OR together the middle bytes" />
				<line code="mov al, @0.U8[2]" time="U 1"             comment="Get the high byte of the value" />
				<line code="mov @0.U8[1], dh" time="U*1"             comment="Store the middle byte" />
				<line code="or al, dl"        time=" V1"             comment="OR together the high bytes" />
				<line code="mov @0.U8[2], al" time="U*1"             comment="Store the high byte" />
			</codeset>
			<codeset param0="M" param1="R,I" total="6" totalv="6"
				lostregs="ax,edx" endregs="ah=@0.U8[1],al=@0.U8[2]" endpipe="U">
				<line code="mov al, @0.U8[0]" time="U 1" timev=" V1" comment="Get the low byte of the value" />
				<line code="mov edx, @1.U32"  time=" V1" timev="U 1" comment="Get the modifier" />
				<line code="or dl, al"        time="U 1" timev="U*1" comment="OR together the low bytes" />
				<line code="mov ah, @0.U8[1]" time=" V1"             comment="Get the middle byte of the value" />
				<line code="or ah, dh"        time="U 1"             comment="OR together the middle bytes" />
				<line code="mov @0.U8[0], dl" time=" V1"             comment="Store the low byte" />
				<line code="shr edx, 16"      time="U!1"             comment="Shift the high byte of the modifier into position" />
				<line code="mov al, @0.U8[2]" time=" V1"             comment="Get the high byte of the value" />
				<line code="mov @0.U8[1], ah" time="U 1"             comment="Store the middle byte" />
				<line code="or al, dl"        time=" V1"             comment="OR the high bytes together" />
				<line code="mov @0.U8[2], al" time="U 1"             comment="Store the high byte" />
			</codeset>

			<codeset param0="R" param1="M" param0type="U24" total="6" totalv="5"
				lostregs="eax" endregs="eax=@1.U24" endpipe="U">
				<line code="xor eax, eax"     time="U 1" timev=" V1" comment="Clear to zero" />
				<line code="mov al, @1.U8[1]" time="U*1" timev="U 1" comment="Get the middle byte" />
				<line code="mov ah, @1.U8[2]" time="U*1"             comment="Get the high byte" />
				<line code="shl eax, 8"       time="U!1"             comment="Shift them into position" />
				<line code="mov al, @1.U8"    time="U*1"             comment="Get the low byte" />
				<line code="or @0.U32, eax"   time="U*1"             comment="OR them together" />
			</codeset>
			<codeset param0="R" param1="M" param0type="S24" total="8" totalv="7"
				lostregs="eax" endregs="eax=@1.U24" endpipe="U">
				<line code="xor eax, eax"     time="U 1" timev=" V1" comment="Clear to zero" />
				<line code="mov al, @1.U8[1]" time="U*1" timev="U 1" comment="Get the middle byte" />
				<line code="mov ah, @1.U8[2]" time="U*1"             comment="Get the high byte" />
				<line code="shl eax, 8"       time="U!1"             comment="Shift them into position" />
				<line code="mov al, @1.U8"    time="U*1"             comment="Get the low byte" />
				<line code="or @0.U32, eax"   time="U*1"             comment="OR them together" />
				<line code="shl @0.U32, 8"    time="U!1"             comment="Move to the high byte" />
				<line code="sar @0.U32, 8"    time="U!1"             comment="SAR to sign extend" />
			</codeset>
			<codeset param0="R" param1="R,I" param0type="U24" param1type="U24" total="1" totalv="0" endpipe="S">
				<line code="or @0.U32, @1.U32" time="U 1" timev=" V1" comment="OR them together" />
			</codeset>
			<codeset param0="R" param1="R" param0type="U24" param1type="S24" total="2" totalv="1" endpipe="U">
				<line code="or @0.U32, @1.U32"    time="U 1" timev=" V1" comment="OR them together" />
				<line code="and @0.U32, 0FFFFFFh" time="U*1" timev="U 1" comment="Clear the high byte" />
			</codeset>
			<codeset param0="R" param1="R" param0type="S24" param1type="U24" total="3" totalv="2" endpipe="U">
				<line code="or @0.U32, @1.U32" time="U 1" timev=" V1" comment="OR them together" />
				<line code="shl @0.U32, 8"     time="U!1"             comment="Shift to the high byte" />
				<line code="sar @0.U32, 8"     time="U!1"             comment="SAR to sign extend" />
			</codeset>
			<codeset param0="R" param1="R,I" param0type="S24" param1type="S24" total="1" totalv="0" endpipe="S">
				<line code="or @0.U32, @1.S32" time="U 1" timev=" V1" comment="OR them together" />
			</codeset>
		</codetypeset>


		<!-- $$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$ -->
		<!-- From 32-256bit to 24bit -->
		<codetypeset param0="U/S24" param1="U/S32-256">
			<codeset param0="M" param1="M,R" total="6" totalv="6"
				lostregs="eax,dx" endregs="al=@1.U8[2],dh=@0.U8[1],dl=@0.U8[2]" endpipe="U">
				<line code="mov dl, @0.U8"    time="U 1" timev=" V1" comment="Get the low byte of the value" />
				<line code="mov eax, @1.U32"  time=" V1" timev="U 1" comment="Get the lower DWord of the modifier" />
				<line code="or al, dl"        time="U 1" timev="U*1" comment="OR the low bytes together" />
				<line code="mov dh, @0.U8[1]" time=" V1"             comment="Get the middle byte of the value" />
				<line code="mov @0.U8, al"    time="U 1"             comment="Store the low byte" />
				<line code="or dh, ah"        time=" V1"             comment="OR the middle bytes together" />
				<line code="shr eax, 16"      time="U!1"             comment="Shift the value so we can access the high byte" />
				<line code="mov dl, @0.U8[2]" time=" V1"             comment="Get the high byte of the value" />
				<line code="mov @0.U8[1], dh" time="U 1"             comment="Store the middle byte" />
				<line code="or dl, al"        time=" V1"             comment="OR the high bytes together" />
				<line code="mov @0.U8[2], dl" time="U 1"             comment="Store the high byte" />
			</codeset>
			<codeset param0="M" param1="V" total="6" totalv="5"
				lostregs="ax,@1.U32" endregs="ah=@0.U8[1],al=@0.U8[2]" endpipe="U">
				<line code="mov al, @0.U8"    time="U 1" timev=" V1" comment="Get the low byte of the value" />
				<line code="or @1.U8, al"     time="U*1" timev="U 1" comment="OR the low bytes together" />
				<line code="mov ah, @0.U8[1]" time=" V1"             comment="Get the middle byte of the value" />
				<line code="mov @0.U8, @1.U8" time="U 1"             comment="Store the low byte" />
				<line code="or ah, @1.U8[1]"  time=" V1"             comment="OR the middle bytes together" />
				<line code="shr @1.U32, 16"   time="U!1"             comment="Shift the value so we can access the high byte" />
				<line code="mov al, @0.U8[2]" time=" V1"             comment="Get the high byte of the value" />
				<line code="mov @0.U8[1], ah" time="U 1"             comment="Store the middle byte" />
				<line code="or al, @1.U8"     time=" V1"             comment="OR the high bytes together" />
				<line code="mov @0.U8[2], al" time="U 1"             comment="Store the high byte" />
			</codeset>

			<codeset param0="R" param1="M" param0type="U24" total="3" totalv="2" endpipe="U">
				<line code="or @0.U32, @1.U32"    time="U 2" timev=" V2" comment="OR them together" />
				<line code="and @0.U32, 0FFFFFFh" time="U*1" timev="U 1" comment="Clear the high byte" />
			</codeset>
			<codeset param0="R" param1="M" param0type="S24" total="4" totalv="3" endpipe="U">
				<line code="or @0.U32, @1.U32" time="U 2" timev=" V2" comment="OR them together" />
				<line code="shl @0.U32, 8"     time="U!1"             comment="Shift to the high byte" />
				<line code="sar @0.U32, 8"     time="U!1"             comment="SAR to sign extend" />
			</codeset>
			<codeset param0="R" param1="R" param0type="U24" total="2" totalv="1" endpipe="U">
				<line code="or @0.U32, @1.U32"    time="U 1" timev=" V1" comment="OR them together" />
				<line code="and @0.U32, 0FFFFFFh" time="U*1" timev="U 1" comment="Clear the high byte" />
			</codeset>
			<codeset param0="R" param1="R" param0type="S24" total="3" totalv="2" endpipe="U">
				<line code="or @0.U32, @1.U32" time="U 1" timev=" V1" comment="OR them together" />
				<line code="shl @0.U32, 8"     time="U!1"             comment="Shift to the high byte" />
				<line code="sar @0.U32, 8"     time="U!1"             comment="SAR to sign extend" />
			</codeset>
		</codetypeset>


		<!-- $$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$ -->
		<!-- From 24bit to 32-256bit -->
		<codetypeset param0="U/S32-256" param1="U/S24">
			<codeset param0="M" param1="M" total="7" totalv="6"
				lostregs="eax,edx" endregs="eax=@1.U24,edx=@0.U32" endpipe="U">
				<line code="xor eax, eax"     time="U 1" timev=" V1" comment="Clear to zero" />
				<line code="mov edx, @0.U32"  time=" V1" timev="U 1" comment="Get the value" />
				<line code="mov al, @1.U8[2]" time="U 1" timev=" V1" comment="Get the high byte" />
				<line code="shl eax, 16"      time="U!1"             comment="Shift it into position" />
				<line code="mov al, @1.U8[0]" time="U*1"             comment="Get the low byte" />
				<line code="mov ah, @1.U8[1]" time="U*1"             comment="Get the middle byte" />
				<line code="or edx, eax"      time="U*1"             comment="OR them together" />
				<line code="mov @0.U32, edx"  time="U*1"             comment="Store it" />
			</codeset>
			<codeset param0="M" param1="R" param1type="U24" total="3" totalv="2" endpipe="U">
				<line code="or @0.U32, @1.U32" time="U 3" timev=" V3" comment="OR them together" />
			</codeset>
			<codeset param0="M" param1="R" param1type="S24" total="4" totalv="3"
				lostregs="eax,edx" endregs="edx=@0.U32,eax=@1.U24" endpipe="U">
				<line code="mov eax, @1.U32"   time="U 1" timev=" V1" comment="Get the modifier" />
				<line code="mov edx, @0.U32"   time=" V1" timev="U 1" comment="Get the value" />
				<line code="and eax, 0FFFFFFh" time="U 1" timev=" V1" comment="Clear the high byte" />
				<line code="or edx, eax"       time="U*1" timev="U 1" comment="OR them together" />
				<line code="mov @0.U32, edx"   time="U*1"             comment="Store it" />
			</codeset>

			<codeset param0="R" param1="M" total="6" totalv="5"
				lostregs="eax" endregs="eax=@1.U24" endpipe="U">
				<line code="xor eax, eax"     time="U 1" timev=" V1" comment="Clear to zero" />
				<line code="mov al, @1.U8[2]" time="U*1" timev="U 1" comment="Get the high byte" />
				<line code="shl eax, 16"      time="U!1"             comment="Shift it into position" />
				<line code="mov al, @1.U8[0]" time="U*1"             comment="Get the low byte" />
				<line code="mov ah, @1.U8[1]" time="U*1"             comment="Get the middle byte" />
				<line code="or @0.U32, eax"   time="U*1"             comment="OR them together" />
			</codeset>
			<codeset param0="R" param1="R" param1type="U24" total="1" totalv="0" endpipe="U">
				<line code="or @0.U32, @1.U32" time="U 1" timev=" V1" comment="OR them together" />
			</codeset>
			<codeset param0="R" param1="R" param1type="S24" total="3" totalv="2"
				lostregs="eax" endregs="eax=@1.U24" endpipe="U">
				<line code="mov eax, @1.U32"   time="U 1" timev=" V1" comment="Get the value" />
				<line code="and eax, 0FFFFFFh" time="U*1" timev="U 1" comment="Clear the high byte" />
				<line code="or @0.U32, eax"    time="U*1" timev="U*1" comment="OR them together" />
			</codeset>
		</codetypeset>



		<!-- ********************************************************************************************************** -->
		<!-- ORing TO/FROM 32bit values -->

		<!-- $$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$ -->
		<!-- From 32bit to 32-256bit -->
		<codetypeset param0="U/S32-256" param1="U/S32" id="ORFrom32bitTo32-256bit">
			<codeset param0="M" param1="M" total="3" totalv="3"
				lostregs="eax,edx" endregs="eax=@0.U32,edx=@1.U32" endpipe="U">
				<line code="mov eax, @0.U32" time="U 1" timev=" V1" comment="Get the value" />
				<line code="mov edx, @1.U32" time=" V1" timev="U 1" comment="Get the modifier" />
				<line code="or eax, edx"     time="U 1" timev="U*1" comment="OR them together" />
				<line code="mov @0.U32, eax" time="U*1"             comment="Store it" />
			</codeset>
			<codeset param0="M" param1="R,I" total="3" totalv="2" endpipe="S">
				<line code="or @0.U32, @1.U32" time="U 3" timev=" V3" comment="OR them together" />
			</codeset>

			<codeset param0="R" param1="M" total="2" totalv="1" endpipe="S">
				<line code="or @0.U32, @1.U32" time="U 2" timev=" V2" comment="OR them together" />
			</codeset>
			<codeset param0="R" param1="R,I" total="1" totalv="0" endpipe="S">
				<line code="or @0.U32, @1.U32" time="U 1" timev=" V1" comment="OR them together" />
			</codeset>
		</codetypeset>


		<!-- $$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$ -->
		<!-- From 48-256bit to 32bit -->
		<codetypeset param0="U/S32" param1="U/S48-256" sameas="ORFrom32bitTo32-256bit" />



		<!-- ********************************************************************************************************** -->
		<!-- ORing TO/FROM Boolean -->

		<!-- $$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$ -->
		<!-- From Boolean to 8-256bit -->
		<codetypeset param0="U/S8-256" param1="Boolean">
			<!-- 1/0 Version -->
			<codeset param0="M" param1="M" total="3" totalv="3"
				lostregs="al,dl" endregs="al=@0.U8,dl=@1.U8" endpipe="U">
				<line code="mov dl, @1"    time="U 1" timev=" V1" comment="Get the modifier's low byte" />
				<line code="mov al, @0.U8" time=" V1" timev="U 1" comment="Get the destination" />
				<line code="or al, dl"     time="U 1" timev="U*1" comment="OR them together" />
				<line code="mov @0.U8, al" time="U*1"             comment="Store the result" />
			</codeset>
			<codeset param0="M" param1="R" total="3" totalv="2" endpipe="S">
				<line code="or @0.U8, @1.U8" time="U 3" timev=" V3" comment="OR them together" />
			</codeset>

			<codeset param0="R" param1="M" total="2" totalv="1" endpipe="S">
				<line code="or @0.U8, @1.U8" time="U 2" timev=" V2" comment="OR them together" />
			</codeset>
			<codeset param0="R" param1="R" total="1" totalv="0" endpipe="S">
				<line code="or @0.U8, @1.U8" time="U 1" timev=" V1" comment="OR them together" />
			</codeset>
		</codetypeset>


		<!-- $$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$ -->
		<!-- From Boolean To Boolean -->
		<codetypeset param0="Boolean" param1="Boolean">
			<!-- 1/0 AND -1/0 version -->
			<codeset param0="M" param1="M" total="3" totalv="3"
				lostregs="al,dl" endregs="al=@0.U8,dl=@1.U8" endpipe="U">
				<line code="mov dl, @1" time="U 1" timev=" V1" comment="Get the modifier" />
				<line code="mov al, @0" time=" V1" timev="U 1" comment="Get our value" />
				<line code="or al, dl"  time="U 1" timev="U*1" comment="OR them together" />
				<line code="mov @0, al" time="U*1"                    comment="Store the result" />
			</codeset>
			<codeset param0="M" param1="R,I" total="3" totalv="2" endpipe="S">
				<line code="or @0, @1" time="U 3" timev=" V3" comment="OR them together" />
			</codeset>

			<codeset param0="R" param1="M" total="2" totalv="1" endpipe="S">
				<line code="or @0, @1" time="U 2" timev=" V2" comment="OR them together" />
			</codeset>
			<codeset param0="R" param1="R,I" total="1" totalv="0" endpipe="S">
				<line code="or @0, @1" time="U 1" timev=" V1" comment="OR them together" />
			</codeset>
		</codetypeset>


		<!-- $$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$ -->
		<!-- From 8bit To Boolean -->
		<codetypeset param0="Boolean" param1="U/S8">
			<!-- 1/0 Version -->
			<codeset param0="M" param1="M,R" total="5" totalv="5"
				lostregs="al,dx" endregs="dl=@0.U8" endpipe="U">
				<line code="mov dl, @0" time="U 1" timev=" V1" comment="Get the destination" />
				<line code="mov al, @1" time=" V1" timev="U 1" comment="Get the modifier" />
				<line code="xor dh, dh" time="U 1" timev=" V1" comment="Clear to zero" />
				<line code="add al, -1" time=" V1" timev="U 1" comment="Add -1. This will set carry if it is non-zero" />
				<line code="adc dh, dh" time="U!1"             comment="1 if carry, 0 if not" />
				<line code="or dl, dh"  time="U*1"             comment="OR them together" />
				<line code="mov @0, dl" time="U*1"             comment="Store the result" />
			</codeset>
			<codeset param0="M" param1="V" total="5" totalv="4"
				lostregs="al,@1.U8" endregs="al=@0.U8" endpipe="U">
				<line code="add @1.U8, -1"    time="U 1" timev=" V1" comment="Add -1. This will set carry if it is non-zero" />
				<line code="mov @1.U8, 0"     time="U*1" timev="U 1" comment="Clear to zero" />
				<line code="mov al, @0.U8"    time=" V1"             comment="Get the value" />
				<line code="adc @1.U8, @1.U8" time="U!1"             comment="Get the boolean equivalent" />
				<line code="or al, @1.U8"     time="U*1"             comment="OR them together" />
				<line code="mov @0, al"       time="U*1"             comment="Store the result" />
			</codeset>

			<codeset param0="R" param1="M,R" total="4" totalv="4"
				lostregs="al,dl" endpipe="U">
				<line code="xor dl, dl" time="U 1" timev=" V1" comment="Clear to zero" />
				<line code="mov al, @1" time=" V1" timev="U 1" comment="Get the value" />
				<line code="add al, -1" time="U 1" timev="U*1" comment="Add -1. This will set carry if non-zero" />
				<line code="adc dl, dl" time="U!1"             comment="1 if carry, 0 if no carry" />
				<line code="or @0, al"  time="U*1"             comment="OR them together" />
			</codeset>
			<codeset param0="R" param1="V" total="4" totalv="3"
				lostregs="@1.U8" endpipe="U">
				<line code="add @1.U8, -1"    time="U 1" timev=" V1" comment="Add -1. This will set carry if it is non-zero" />
				<line code="mov @1.U8, 0"     time="U*1" timev="U 1" comment="Clear to zero" />
				<line code="adc @1.U8, @1.U8" time="U!1"             comment="Get the boolean equivalent" />
				<line code="or @0, @1.U8"     time="U*1"             comment="OR them together" />
			</codeset>
		</codetypeset>


		<!-- $$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$ -->
		<!-- From 16bit to Boolean -->
		<codetypeset param0="Boolean" param1="U/S16">
			<!-- 1/0 Version -->
			<codeset param0="M" param1="M,R" total="7" totalv="7"
				lostregs="ax,dx" endregs="al=@0.U8" endpipe="U">
				<line code="mov dx, @1" time="U 1+1" timev=" V1+1" comment="Get the modifier" />
				<line code="xor ah, ah" time=" V1"   timev="U 1"   comment="Clear to zero" />
				<line code="add dx, -1" time="U 1+1" timev=" V1+1" comment="Add -1. This will set carry if it is non-zero" />
				<line code="mov al, @0" time=" V1"   timev="U 1"   comment="Get the value" />
				<line code="adc ah, ah" time="U!1"                 comment="1 if carry, 0 if no carry" />
				<line code="or al, ah"  time="U*1"                 comment="OR them together" />
				<line code="mov @0, al" time="U*1"                 comment="Store the result" />
			</codeset>
			<codeset param0="M" param1="V" total="6" totalv="5"
				lostregs="al,@1.U16" endregs="al=@0.U8" endpipe="U">
				<line code="add @1.U16, -1"   time="U 1+1" timev=" V1+1" comment="Add -1. This will set carry if it is non-zero" />
				<line code="mov @1.U8, 0"     time="U*1"   timev="U 1"   comment="Clear to zero" />
				<line code="mov al, @0.U8"    time=" V1"                 comment="Get the value" />
				<line code="adc @1.U8, @1.U8" time="U!1"                 comment="1 if carry, 0 if no carry" />
				<line code="or al, @1.U8"     time="U*1"                 comment="OR them together" />
				<line code="mov @0.U8, al"    time="U*1"                 comment="Store the result" />
			</codeset>

			<codeset param0="R" param1="M,R" total="6" totalv="5"
				lostregs="ax,dl" endpipe="U">
				<line code="mov ax, @1" time="U 1+1" timev=" V1+1" comment="Get the modifier" />
				<line code="xor dl, dl" time=" V1"   timev="U 1"   comment="Clear to zero" />
				<line code="add ax, -1" time="U 1+1" timev=" V1+1" comment="Add -1. This will set carry if non-zero" />
				<line code="adc dl, dl" time="U!1"                 comment="1 if carry, 0 if no carry" />
				<line code="or @0, dl"  time="U*1"                 comment="OR them together" />
			</codeset>
			<codeset param0="R" param1="V" total="4" totalv="4"
				lostregs="@1.U16" endpipe="U">
				<line code="add @1.U16, -1"   time="U 1+1" timev=" V1+1" comment="Add -1. This will set carry if non-zero" />
				<line code="mov @1.U8, 0"     time=" V1"   timev="U 1"   comment="Clear to zero" />
				<line code="adc @1.U8, @1.U8" time="U!1"                 comment="1 if carry, 0 if no carry" />
				<line code="or @0, @1.U8"     time="U*1"                 comment="OR them together" />
			</codeset>
		</codetypeset>


		<!-- $$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$ -->
		<!-- From 24bit to Boolean -->
		<codetypeset param0="Boolean" param1="U/S24">
			<!-- 1/0 Version -->
			<codeset param0="M" param1="M" total="8" totalv="7"
				lostregs="ax,dx" endregs="ah=@1.U8[1],dh=@0.U8" endpipe="U">
				<line code="mov al, @1.U8"    time="U 1" timev=" V1" comment="Get byte 1 of the modifier" />
				<line code="mov dh, @0"       time=" V1" timev="U 1" comment="Get the value" />
				<line code="mov ah, @1.U8[1]" time="U 1" timev=" V1" comment="Get byte 2 of the modifier" />
				<line code="or al, ah"        time="U*1" timev="U 1" comment="Bytes 1 and 2 merged" />
				<line code="mov dl, @1.U8[2]" time=" V1"             comment="Get byte 3 of the modifier" />
				<line code="or al, dl"        time="U 1"             comment="Bytes 1, 2 and 3 are now merged" />
				<line code="xor dl, dl"       time=" V1"             comment="Clear to zero" />
				<line code="add al, -1"       time="U 1"             comment="Add -1. This will set carry if it is non-zero" />
				<line code="adc dl, dl"       time="U!1"             comment="1 if carry, 0 if no carry" />
				<ilne code="or dh, dl"        time="U*1"             comment="OR the values together" />
				<line code="mov @0, dh"       time="U*1"             comment="Store the result" />
			</codeset>
			<codeset param0="M" param1="R" param1type="U24" total="5" totalv="5"
				lostregs="eax,dx" endregs="dh=@0.U8" endpipe="U">
				<line code="mov dh, @0"      time="U 1" timev=" V1" comment="Get the value" />
				<line code="mov eax, @1.U32" time=" V1" timev="U 1" comment="Move the whole 24bit register" />
				<line code="xor dl, dl"      time="U 1" timev=" V1" comment="Clear to zero" />
				<line code="add eax, -1"     time=" V1" timev="U 1" comment="Add -1. This will set carry if it is non-zero" />
				<line code="adc dl, dl"      time="U!1"             comment="1 if carry, 0 if no carry" />
				<line code="or dh, dl"       time="U*1"             comment="OR the values together" />
				<line code="mov @0, dh"      time="U*1"             comment="Store the result" />
			</codeset>
			<codeset param0="M" param1="R" param1type="S24" total="6" totalv="5"
				lostregs="eax,dx" endregs="dh=@0.U8" endpipe="U">
				<line code="mov eax, @1.U32"   time="U 1" timev=" V1" comment="Move the whole 24bit register" />
				<line code="mov dh, @0"        time=" V1" timev="U 1" comment="Get the value" />
				<line code="and eax, 0FFFFFFh" time="U 1" timev=" V1" comment="Clear the high byte" />
				<line code="xor dl, dl"        time=" V1" timev="U 1" comment="Clear to zero" />
				<line code="add eax, -1"       time="U 1" timev=" V1" comment="Add -1. This will set carry if it is non-zero" />
				<line code="adc dl, dl"        time="U!1"             comment="1 if carry, 0 if no carry" />
				<line code="or dh, dl"         time="U*1"             comment="OR the values together" />
				<line code="mov @0, dh"        time="U*1"             comment="Store the result" />
			</codeset>

			<!--
			<codeset param0="R" param1="M" total="8" totalv="7"
				lostregs="al,dl" endpipe="U">
				<line code="mov al, @1.U8"   time="U 1" timev=" V1" comment="Get byte 1 of the modifier" />
				<line code="xor dl, dl"      time=" V1" timev="U 1" comment="Clear to zero" />
				<line code="or al, @1.U8[1]" time="U*2" timev=" V2" comment="Get byte 2 of the modifier" />
				<line code="or al, @1.U8[2]" time="U*2" timev="U 2" comment="Get byte 3 of the modifier" />
				<line code="add al, -1"      time="U*1"             comment="Add -1. This will set carry if it is non-zero" />
				<line code="adc dl, dl"      time="U!1"             comment="1 if carry, 0 if no carry" />
				<line code="or @0, dl"       time="U*1"             comment="OR the values together" />
			</codeset>
			-->
			<!-- This is a tiny bit faster than the code above -->
			<codeset param0="R" param1="M" total="7" totalv="6"
				lostregs="ax,dx" endregs="ah=@1.U8[1],dh=@1.U8[2]" endpipe="U">
				<line code="mov al, @1.U8"    time="U 1" timev=" V1" comment="Get byte 1 of the modifier" />
				<line code="xor dl, dl"       time=" V1" timev="U 1" comment="Clear to zero" />
				<line code="mov ah, @1.U8[1]" time="U 1" timev=" V1" comment="Get byte 2 of the modifier" />
				<line code="or al, ah"        time="U*1" timev="U 1" comment="Combine them" />
				<line code="mov dh, @1.U8[2]" time=" V1"             comment="Get byte 3 of the modifier" />
				<line code="or al, dh"        time="U 1"             comment="Combine them" />
				<line code="add al, -1"       time="U*1"             comment="Add -1. This will set carry if it is non-zero" />
				<line code="adc dl, dl"       time="U!1"             comment="1 if carry, 0 if no carry" />
				<line code="or @0, dl"        time="U*1"             comment="OR the values together" />
			</codeset>
			<codeset param0="R" param1="R" param1type="U24" total="4" totalv="3"
				lostregs="eax,dl" endpipe="U">
				<line code="mov eax, @1.U32" time="U 1" timev=" V1" comment="Move the whole 24bit register" />
				<line code="xor dl, dl"      time=" V1" timev="U 1" comment="Clear to zero" />
				<line code="add eax, -1"     time="U 1" timev=" V1" comment="Add -1. This will set carry if it is non-zero" />
				<line code="adc dl, dl"      time="U!1"             comment="1 if carry, 0 if no carry" />
				<line code="or @0, dl"       time="U*1"             comment="OR the values together" />
			</codeset>
			<codeset param0="R" param1="R" param1type="S24" total="5" totalv="4"
				lostregs="eax,dl" endpipe="U">
				<line code="mov eax, @1.U32"   time="U 1" timev=" V1" comment="Move the whole 24bit register" />
				<line code="xor dl, dl"        time=" V1" timev="U 1" comment="Clear to zero" />
				<line code="and eax, 0FFFFFFh" time="U 1" timev=" V1" comment="Clear the high byte" />
				<line code="add eax, -1"       time="U*1" timev="U 1" comment="Add -1. This will set carry if it is non-zero" />
				<line code="adc dl, dl"        time="U!1"             comment="1 if carry, 0 if no carry" />
				<line code="or @0, dl"         time="U*1"             comment="OR the values together" />
			</codeset>
		</codetypeset>


		<!-- $$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$ -->
		<!-- From 32bit to Boolean -->
		<codetypeset param0="Boolean" param1="U/S32">
			<!-- 1/0 Version -->
			<codeset param0="M" param1="M,R" total="5" totalv="5"
				lostregs="eax,dx" endregs="dh=@0.U8" endpipe="U">
				<line code="mov eax, @1" time="U 1" timev=" V1" comment="Get the modifier" />
				<line code="xor dl, dl"  time=" V1" timev="U 1" comment="Clear to zero" />
				<line code="add eax, -1" time="U 1" timev=" V1" comment="Add -1. This will set carry if it is non-zero" />
				<line code="mov dh, @0"  time=" V1" timev="U 1" comment="Get the value" />
				<line code="adc dl, dl"  time="U!1"             comment="1 if carry, 0 if no carry" />
				<line code="or dh, dl"   time="U*1"             comment="OR them together" />
				<line code="mov @0, dh"  time="U*1"             comment="Store the result" />
			</codeset>
			<codeset param0="M" param1="V" total="5" totalv="4"
				lostregs="al,@1.U32" endregs="al=@0.U8" endpipe="U">
				<line code="add @1.U32, -1"   time="U 1" timev=" V1" comment="Add -1. This will set carry if it is non-zero" />
				<line code="mov @1.U8, 0"     time="U*1" timev="U 1" comment="Clear to zero" />
				<line code="mov al, @0.U8"    time=" V1"             comment="Get the value" />
				<line code="adc @1.U8, @1.U8" time="U!1"             comment="1 if carry, 0 if no carry" />
				<line code="or al, @1.U8"     time="U*1"             comment="OR them together" />
				<line code="mov @0.U8, al"    time="U*1"             comment="Store the result" />
			</codeset>

			<codeset param0="R" param1="M,R" total="4" totalv="3"
				lostregs="eax,dl" endpipe="U">
				<line code="mov eax, @1" time="U 1" timev=" V1" comment="Get the modifier" />
				<line code="xor dl, dl"  time=" V1" timev="U 1" comment="Clear to zero" />
				<line code="add eax, -1" time="U*1" timev=" V1" comment="Add -1. This will set carry if non-zero" />
				<line code="adc dl, dl"  time="U!1"             comment="1 if carry, 0 if no carry" />
				<line code="or @0, dl"   time="U*1"             comment="OR them together" />
			</codeset>
			<codeset param0="R" param1="V" total="4" totalv="3"
				lostregs="@1.U32" endpipe="U">
				<line code="add @1.U32, -1"   time="U 1" timev=" V1" comment="Add -1. This will set carry if it is non-zero" />
				<line code="mov @1.U8, 0"     time="U*1" timev="U 1" comment="Clear to zero" />
				<line code="adc @1.U8, @1.U8" time="U!1"             comment="1 if carry, 0 if no carry" />
				<line code="or @0.U8, @1.U8"  time="U*1"             comment="OR them together" />
			</codeset>
		</codetypeset>
	</mnemonic>
</encoding>
