<!-- 
     JUST COPY THIS ENTIRE FILE INTO YOUR ECUFLASH DIRECTORY (rommetadata\mitsubishi\evo)
     YOU SHOULD NOT NEED TO EDIT OR COPY/PASTE THIS TEXT
-->
<rom>
	<romid>
		<xmlid>96260709</xmlid>
		<internalidaddress>f52</internalidaddress>
		<internalidhex>96260709</internalidhex>
		<make>Mitsubishi</make>
		<market>TDM</market>
		<model>Lancer</model>
		<submodel>Evolution VIII</submodel>
		<transmission>6MT</transmission>
		<year>2005</year>
		<flashmethod>mitsukernel</flashmethod>
		<memmodel>SH7052</memmodel>
	</romid>

	<include>96260009</include>
	<scaling name="1bytefactor" units="units" toexpr="x/((32/10)*100)" frexpr="x*((32/10)*100)" format="%.1f" min="1" max="2" inc="0.1" storagetype="uint16" endian="big"/>
	<scaling name="ECUTime" units="ms" toexpr="1000*x/102" frexpr="102*x/1000" format="%.0f" min="0" max="100000" inc="10" storagetype="uint16" endian="big"/>
	<scaling name="OffsetWGDC" units="WGDC Change" toexpr="(x-128)/2" frexpr="x*2+128" format="%.1f" min="-64" max="63.5" inc="0.5" storagetype="uint8" endian="big"/>
	<scaling name="Percent255" units="%" toexpr="100*x/255" frexpr="255*x/100" format="%.0f" min="0" max="100" inc="1" storagetype="uint8" endian="big"/>
	<scaling name="RPMPerKPH" units="RPM/KPH" toexpr="x/36.37" frexpr="36.37*x" format="%.0f" min="0" max="3000" inc="5" storagetype="uint16" endian="big"/>
	<scaling name="VoltsADC1023" units="Volts" toexpr="x*5/1023" frexpr="x*1023/5" format="%.3f" min="0" max="5" inc="0.005" storagetype="uint16" endian="big"/>
	<scaling name="TimeInjCranking" units="ms" toexpr="x*0.008" frexpr="x/0.008" format="%.1f" min="0" max="500" inc="1" storagetype="uint16" endian="big"/>
	<scaling name="Load8" units="%" toexpr="x*5/8" frexpr="x*8/5" format="%.1f" min="0" max="160" inc="1" storagetype="uint8" endian="big"/>
	<scaling name="ThrottlePercentage" units="%" toexpr="x/255*100" frexpr="x*255/100" format="%.0f" min="0" max="100" inc="1" storagetype="uint16"/>

	<table name="Tephra Mod Options" category="TephraMod-V7" address="3e21C" type="3D" scaling="uint16">
		<table name="X" type="Static X Axis" elements="1">
			<data>Value</data>
		</table>
		<table name="Y" type="Static Y Axis" elements="16">
			<data>Enable Valet Mode                                    ?</data>
			<data>+ Enable Auto-Valet on Fresh Ignition                ?</data>
			<data>Enable Alternate Maps Master ADC0F=1,AutoICS=2,TPS=3 ?</data>
			<data>Restore ICS State on Ignition                        ?</data>
			<data>Flash ICS when on Alternate Map                      ?</data>
			<data>Flash CEL on Knock                                   ?</data>
			<data>+ Drop Boost on High-Knock                           ?</data>
			<data>Enable Manual ICS Linger                             ?</data>
			<data>Enable Spray ICS on Knock                            ?</data>
			<data>Enable No Lift to Shift                              ?</data>
			<data>Enable RearO2 Simulator                              ?</data>
			<data>Enable Manifold Absolute Pressure Averaging          ?</data>
			<data>Enable WB02 Check AFR Safety                         ?</data>
			<data>+ Drop Boost on AFR Out of Range                     ?</data>
			<data>Enable AirFlow Calcs                                 ?</data>
			<data>Enable Launch Maps                                   ?</data>
		</table>
	</table>

	<table name="KnockSum Required for Slow CEL (Low Knock)" category="TephraMod-V7" address="3e23c" type="1D" scaling="uint16"/>
	<table name="KnockSum Required for Fast CEL (High Knock)" category="TephraMod-V7" address="3e23e" type="1D" scaling="uint16"/>
	<table name="Load Required for CEL on Knock" category="TephraMod-V7" address="3e240" type="1D" scaling="Load"/>
	<table name="High Knock Boost Drop and Knock CEL Flash time" category="TephraMod-V7" address="3e242" type="1D" scaling="ECUTime"/>

	<table name="Valet Rev Limit" category="TephraMod-V7" address="3e244" type="1D" scaling="RPMLimit"/>

	<table name="TPS Toggle Time to Activate" category="TephraMod-V7" address="3e246" type="1D" scaling="ECUTime"/>
	<table name="TPS Toggle CEL Flash Time" category="TephraMod-V7" address="3e248" type="1D" scaling="ECUTime"/>

	<table name="Manual ICS Linger Time" category="TephraMod-V7" address="3e24a" type="1D" scaling="ECUTime"/>

	<table name="KnockSum Required for Spray" category="TephraMod-V7" address="3e24c" type="1D" scaling="uint16"/>
	<table name="Load Required for Spray on Knock" category="TephraMod-V7" address="3e24e" type="1D" scaling="Load"/>
	<table name="Spray on Knock time" category="TephraMod-V7" address="3e250" type="1D" scaling="ECUTime"/>

	<table name="NLTS RPM Drop" category="TephraMod-V7" address="3e252" type="1D" scaling="uint16"/>
	<table name="NLTS TPS Threshold" category="TephraMod-V7" address="3e254" type="1D" scaling="ThrottlePercentage"/>
	<table name="NLTS Speed Threshold" category="TephraMod-V7" address="3e256" type="1D" scaling="VehicleSpeed"/>
	<table name="NLTS Load Threshold" category="TephraMod-V7" address="3e258" type="1D" scaling="Load"/>

	<table name="Alternate Map Time to Activate" category="TephraMod-V7" address="3e25a" type="1D" scaling="ECUTime"/>
	<table name="Alternate Map Load Threshold" category="TephraMod-V7" address="3e25c" type="1D" scaling="Load"/>
	<table name="Alternate Map ADC0F Threshold" category="TephraMod-V7" address="3e25e" type="1D" scaling="Volts16"/>

	<table name="2byte to 1byte Load Factor" category="TephraMod-V7" address="3e260" type="1D" scaling="1bytefactor"/>

	<table name="AFR Safety Load Threshold" category="TephraMod-V7" address="3e262" type="1D" scaling="Load"/>
	<table name="AFR Safety Max AFR (Volts)" category="TephraMod-V7" address="3e264" type="1D" scaling="Volts16"/>
	<table name="AFR Safety Boost Drop and CEL Flash time" category="TephraMod-V7" address="3e266" type="1D" scaling="ECUTime"/>
	<table name="AFR Safety Detection Period" category="TephraMod-V7" address="3e268" type="1D" scaling="ECUTime"/>

	<table name="Launch-Map TPS Threshold" category="TephraMod-V7" address="3e26a" type="1D" scaling="ThrottlePercentage"/>
	<table name="Launch-Map Speed Threshold" category="TephraMod-V7" address="3e26c" type="1D" scaling="VehicleSpeed"/>


	<!-- BEGIN ALTMAP DEFINITIONS -->
	<table name="Alternate Injector Scaling" category="TephraMod-V7" address="37b40" type="1D" scaling="InjectorScaling"/>
	
	<table name="Alternate Hi Octane Fuel Map" category="TephraMod-V7" address="37b4d" type="3D" swapxy="true" scaling="AFR">
		<table name="Engine Load" address="3795a" type="X Axis" elements="30" scaling="Load"/>
		<table name="RPM" address="3790a" type="Y Axis" elements="25" scaling="RPM"/>
	</table>
	<table name="Alternate Hi Octane Ignition Map" category="TephraMod-V7" address="37e4d" type="3D" swapxy="true" scaling="Timing">
		<table name="Engine Load" address="3795a" type="X Axis" elements="30" scaling="Load"/>
		<table name="RPM" address="3790a" type="Y Axis" elements="25" scaling="RPM"/>
	</table>

	<table name="Alternate Baseline Wastegate Duty Cycle" category="TephraMod-V7" address="3814d" type="3D" swapxy="true" scaling="WGDuty">
		<table name="Gear" address="3f1c2" type="X Axis" elements="7" scaling="uint16"/>
		<table name="RPM" address="5e5a" type="Y Axis" elements="16" scaling="RPM"/>
	</table>
	<table name="Alternate Boost Desired Engine Load" category="TephraMod-V7" address="381cd" type="3D" swapxy="true" scaling="Load8">
		<table name="Gear" address="3f1c2" type="X Axis" elements="7" scaling="uint16"/>
		<table name="RPM" address="5e5a" type="Y Axis" elements="16" scaling="RPM"/>
	</table>

	<table name="Alternate Cranking Enrichment IPW Adder (Main)" category="TephraMod-V7" address="3824c" type="2D" scaling="TimeInjCranking">
		<table name="Coolant Temperature" address="5c7a" type="Y Axis" elements="9" scaling="Temp"/>
	</table>

	<!-- END ALTMAP DEFINITIONS -->

	<table name="WGDC=100% under this Load" category="TephraMod-V7" address="3f2b8" type="1D" scaling="Load"/>

	<!--<table name="RPM/Speed Ratio Filter Strength" category="TephraMod-V7" address="3f18c" type="1D" scaling="uint16"/>-->

	<table name="RPM/Speed to Gear" category="TephraMod-V7" address="3f1b0" type="2D" scaling="uint8">
		<table name="RPM/Speed" address="3f19a" type="Y Axis" elements="7" scaling="RPMPerKPH"/>
	</table>

	<table name="MAF IAT WGDC Correction" category="TephraMod-V7" address="3f2dc" type="2D" scaling="OffsetWGDC">
		<table name="Degrees" address="3f2c6" type="Y Axis" elements="7" scaling="Temp"/>
	</table>

	<table name="TPS WGDC Correction" category="TephraMod-V7" address="3f304" type="2D" scaling="Percent255">
		<table name="Throttle" address="3f2ee" type="Y Axis" elements="6" scaling="ThrottlePercentage"/>
	</table>
	
	<table name="Launch Hi Octane Fuel Map" category="TephraMod-V7" address="3934d" type="3D" swapxy="true" scaling="AFR">
		<table name="Engine Load" address="3795a" type="X Axis" elements="30" scaling="Load"/>
		<table name="RPM" address="3790a" type="Y Axis" elements="25" scaling="RPM"/>
	</table>
	<table name="Launch Hi Octane Ignition Map" category="TephraMod-V7" address="3964d" type="3D" swapxy="true" scaling="Timing">
		<table name="Engine Load" address="3795a" type="X Axis" elements="30" scaling="Load"/>
		<table name="RPM" address="3790a" type="Y Axis" elements="25" scaling="RPM"/>
	</table>

	<table name="==== STOCK REPLACEMENT MAPS BELOW ======" category="TephraMod-V7" address="0" type="1D" scaling="uint8" />
		
	<table name="High Octane Fuel Map" category="TephraMod-V7" address="3874d" type="3D" swapxy="true" scaling="AFR">
		<table name="Engine Load" address="3795a" type="X Axis" elements="30" scaling="Load"/>
		<table name="RPM" address="3790a" type="Y Axis" elements="25" scaling="RPM"/>
	</table>
	<table name="Low Octane Fuel Map" category="TephraMod-V7" address="38a4d" type="3D" swapxy="true" scaling="AFR">
		<table name="Engine Load" address="3795a" type="X Axis" elements="30" scaling="Load"/>
		<table name="RPM" address="3790a" type="Y Axis" elements="25" scaling="RPM"/>
	</table>

	<table name="High Octane Ignition Map" category="TephraMod-V7" address="38d4d" type="3D" swapxy="true" scaling="Timing">
		<table name="Engine Load" address="3795a" type="X Axis" elements="30" scaling="Load"/>
		<table name="RPM" address="3790a" type="Y Axis" elements="25" scaling="RPM"/>
	</table>
	<table name="Low Octane Ignition Map" category="TephraMod-V7" address="3904d" type="3D" swapxy="true" scaling="Timing">
		<table name="Engine Load" address="3795a" type="X Axis" elements="30" scaling="Load"/>
		<table name="RPM" address="3790a" type="Y Axis" elements="25" scaling="RPM"/>
	</table>
	
	<table name="Baseline Wastegate Duty Cycle" category="TephraMod-V7" address="3994d" type="3D" swapxy="true" scaling="WGDuty">
		<table name="Gear" address="3f1c2" type="X Axis" elements="7" scaling="uint16"/>
		<table name="RPM" address="5e5a" type="Y Axis" elements="16" scaling="RPM"/>
	</table>
	<table name="Boost Desired Engine Load" category="TephraMod-V7" address="399cd" type="3D" swapxy="true" scaling="Load8">
		<table name="Gear" address="3f1c2" type="X Axis" elements="7" scaling="uint16"/>
		<table name="RPM" address="5e5a" type="Y Axis" elements="16" scaling="RPM"/>
	</table>

  <!-- HIDE all the now redudant maps so users dont get confused -->
  <table name="High Octane Ignition Map 1" category="REDUNDANT MAPS" type="3D" address="0" scaling="REDUNDANT" />
	<table name="Low Octane Ignition Map 1" category="REDUNDANT MAPS" type="3D" address="0" scaling="REDUNDANT" />
	
	<table name="High Octane Ignition Map 2" category="REDUNDANT MAPS" type="3D" address="0" scaling="REDUNDANT" />
	<table name="Low Octane Ignition Map 2" category="REDUNDANT MAPS" type="3D" address="0" scaling="REDUNDANT" />

	<table name="High Octane Ignition Map 3" category="REDUNDANT MAPS" type="3D" address="0" scaling="REDUNDANT" />
	<table name="Low Octane Ignition Map 3" category="REDUNDANT MAPS" type="3D" address="0" scaling="REDUNDANT" />
	
	<table name="Boost Desired Engine Load (High Gear Range)" category="REDUNDANT MAPS" type="3D" address="0" scaling="REDUNDANT" />
	<table name="Boost Desired Engine Load (Low Gear Range)" category="REDUNDANT MAPS" type="3D" address="0" scaling="REDUNDANT" />
	
	<table name="Baseline WGDC (High Gear Range)" category="REDUNDANT MAPS" type="3D" address="0" scaling="REDUNDANT" />
	<table name="Baseline WGDC (Low Gear Range)" category="REDUNDANT MAPS" type="3D" address="0" scaling="REDUNDANT" />
</rom>
