<rom>
	<romid>
		<xmlid>8859E715</xmlid>
		<internalidaddress>f52</internalidaddress>
		<internalidhex>8859E715</internalidhex>
		<make>Mitsubishi</make>
		<market>USDM</market>
		<model>Lancer</model>
		<submodel>Evolution IX</submodel>
		<transmission>6MT</transmission>
		<year>2006</year>
		<flashmethod>mitsukernelocp</flashmethod>
		<memmodel>SH7055</memmodel>
	</romid>

	<include>TephraMOD-88590715-v7</include>

  <scaling name="InjectorScaling01Mult" units="cc/min" toexpr="131*29241/x" frexpr="131*29241/x" format="%.0f" min="60" max="2500" inc="1" storagetype="uint16" endian="big"/>
  <scaling name="EthanolContent" units="%" toexpr="100*x/255" frexpr="255*x/100" format="%.0f" min="0" max="100" inc="1" storagetype="uint16" endian="big"/>
  <scaling name="InjectorCorr" units="Correction %" toexpr="x/1.28-100" frexpr="(x+100)*1.28" format="%.0f" min="-100" max="100" inc="1" storagetype="uint8" endian="big"/>
  <scaling name="EthanolSensorVoltage" units="Volts" toexpr="x*5/255" frexpr="x/5*255" format="%.2f" min="0" max="5" inc="0.01" storagetype="uint8" endian="big"/>

  <table name="Ethanol Injector Scaling" category="FreeFuel" address="49b40" type="1D" scaling="InjectorScaling01Mult"/>
  <table name="Gasoline Injector Scaling" category="FreeFuel" address="1106" type="1D" scaling="InjectorScaling01Mult"/>
  
  <table name="Ethanol Fuel Map (Tephra V7 Alternate)" category="FreeFuel" address="49b4d" type="3D" swapxy="true" scaling="AFR">
		<table name="Engine Load" address="4bb5a" type="X Axis" elements="30" scaling="Load"/>
		<table name="RPM" address="4bb0a" type="Y Axis" elements="25" scaling="RPM"/>
	</table>
	<table name="Gasoline Fuel Map (High octane)" category="FreeFuel" address="4a74d" type="3D" swapxy="true" scaling="AFR">
		<table name="Engine Load" address="4bb5a" type="X Axis" elements="30" scaling="Load"/>
		<table name="RPM" address="4bb0a" type="Y Axis" elements="25" scaling="RPM"/>
	</table>
	<table name="Common Low Octane Fuel Map" category="FreeFuel" address="4aa4d" type="3D" swapxy="true" scaling="AFR">
		<table name="Engine Load" address="4bb5a" type="X Axis" elements="30" scaling="Load"/>
		<table name="RPM" address="4bb0a" type="Y Axis" elements="25" scaling="RPM"/>
	</table>

  <table name="Ethanol Ignition Map (Tephra V7 Alternate Hi Octane)" category="FreeFuel" address="49e4d" type="3D" swapxy="true" scaling="Timing">
		<table name="Engine Load" address="4bb5a" type="X Axis" elements="30" scaling="Load"/>
		<table name="RPM" address="4bb0a" type="Y Axis" elements="25" scaling="RPM"/>
	</table>
  <table name="Gasoline Ignition Map (High octane)" category="FreeFuel" address="4ad4d" type="3D" swapxy="true" scaling="Timing">
		<table name="Engine Load" address="4bb5a" type="X Axis" elements="30" scaling="Load"/>
		<table name="RPM" address="4bb0a" type="Y Axis" elements="25" scaling="RPM"/>
	</table>
	<table name="Common Low Octane Ignition Map" category="FreeFuel" address="4b04d" type="3D" swapxy="true" scaling="Timing">
		<table name="Engine Load" address="4bb5a" type="X Axis" elements="30" scaling="Load"/>
		<table name="RPM" address="4bb0a" type="Y Axis" elements="25" scaling="RPM"/>
	</table>

  <table name="Ethanol Cranking Initial Primer Pulse (Tephra V7 Alternate)" category="FreeFuel" address="4a24c" type="2D" scaling="TimeInjCranking">
		<table name="Coolant Temperature" address="6ff8" type="Y Axis" elements="9" scaling="Temp"/>
	</table>
  <table name="Gasoline Cranking Primer Initial Pulse" category="FreeFuel" address="52b2" type="2D" scaling="TimeInjCranking">
		<table name="Coolant Temperature" address="6ff8" type="Y Axis" elements="9" scaling="Temp"/>
	</table>

  <table name="Ethanol Base Wastegate Duty" category="FreeFuel" address="4a14d" type="3D" level="2" swapxy="true" scaling="WGDuty">
		<table name="Gear" address="511c2" type="X Axis" elements="7" scaling="uint16"/>
		<table name="RPM" address="722e" type="Y Axis" elements="16" scaling="RPM"/>
	</table>
  <table name="Gasoline Base Wastegate Duty" category="FreeFuel" address="4b94d" type="3D" level="2" swapxy="true" scaling="WGDuty">
		<table name="Gear" address="511c2" type="X Axis" elements="7" scaling="uint16"/>
		<table name="RPM" address="722e" type="Y Axis" elements="16" scaling="RPM"/>
	</table>
  
	<table name="Ethanol Boost Desired Engine Load" category="FreeFuel" address="4a1cd" type="3D" level="2" swapxy="true" scaling="Load8">
		<table name="Gear" address="511c2" type="X Axis" elements="7" scaling="uint16"/>
		<table name="RPM" address="722e" type="Y Axis" elements="16" scaling="RPM"/>
	</table>
  <table name="Gasoline Boost Desired Engine Load" category="FreeFuel" address="4b9cd" type="3D" level="2" swapxy="true" scaling="Load8">
		<table name="Gear" address="511c2" type="X Axis" elements="7" scaling="uint16"/>
		<table name="RPM" address="722e" type="Y Axis" elements="16" scaling="RPM"/>
	</table>

  <table name="Ethanol Sensor Fuel/Injector/Primer Setting" category="FreeFuel" address="2b66" type="2D" scaling="Percent255">
		<table name="Sensor Output" address="2b2a" type="Y Axis" elements="2" scaling="Volts16"/>
	</table>

  <table name="Injector correction table" category="FreeFuel" address="2b8a" type="2D" scaling="InjectorCorr">
		<table name="Ethanol content" address="2ba0" type="Y Axis" elements="11" scaling="EthanolContent"/>
	</table>

  <table name="Ethanol Sensor Ignition/Boost Setting" category="FreeFuel" address="2b78" type="2D" scaling="Percent255">
		<table name="Sensor Output" address="2b4a" type="Y Axis" elements="4" scaling="Volts16"/>
	</table>

  <table name="Force enable 0=disabled/1=enabled" category="FreeFuel" address="2b00" type="1D" scaling="uint16"/>

  <table name="Force ethanol sensor voltage 0-5V" category="FreeFuel" address="2b03" type="1D" scaling="EthanolSensorVoltage"/>

  <table name="Safety enable 0=disabled/1=enabled" category="FreeFuel" address="2b04" type="1D" scaling="uint16"/>

  <table name="Safety low limit (voltage over limit forces Ethanol Fuel/Inj and gas Ignition map)" category="FreeFuel" address="2b06" type="1D" scaling="Volts16"/>

  <table name="Safety high limit (voltage over limit forces Ethanol Fuel/Inj and gas Ignition map)" category="FreeFuel" address="2b08" type="1D" scaling="Volts16"/>

  <table name="Sensor update max load limit (lock ethanol percentage when over limit)" category="FreeFuel" address="2b0a" type="1D" scaling="Load16"/>

  <table name="Sensor update max RPM limit (lock ethanol percentage when over limit)" category="FreeFuel" address="2b0c" type="1D" scaling="RPMStatLimit"/>

  <table name="Boost interpolation enable 0=disabled/1=enabled" category="FreeFuel" address="2b0e" type="1D" scaling="uint16"/>

  <!-- EvoLiveMap stuff below. If your ROM is not supporting LiveMap, delete this section -->
  <!-- *** removed ***
	<table name="RAM MUT Table" category="DMA EvoLiveMap" address="37b00" type="3D" scaling="Hex16">
		<table name="X" type="Static X Axis" elements="16">
			<data>-</data> <data>0</data> <data>-</data> <data>1</data> <data>-</data> <data>2</data>	<data>-</data> <data>3</data>	<data>-</data> <data>4</data>	<data>-</data> <data>5</data>	<data>-</data> <data>6</data>	<data>-</data> <data>7</data>
    </table>
		<table name="Y" type="Static Y Axis" elements="2">
			<data>0</data> <data>1</data>
		</table>
	</table>
  
  <table name="FreeFuel Ethanol Injector Scaling ROM=0003 7B40 RAM=FFFF A040" category="DMA EvoLiveMap" address="3F560" type="2D" scaling="Hex16">
		<table name="Ethanol Injector Scaling Addr" type="Static X Axis" elements="2">
			<data>hi word</data> <data>lo word</data>
		</table>
	</table>

	<table name="FreeFuel Ethanol Fuel Map ROM=0003 7B42 RAM=FFFF A042" category="DMA EvoLiveMap" address="3F590" type="2D" scaling="Hex16">
		<table name="Ethanol Fuel Map Addr" type="Static X Axis" elements="2">
			<data>hi word</data> <data>lo word</data>
		</table>
	</table>

	<table name="FreeFuel Ethanol Ignition Map ROM=0003 7E42 RAM=FFFF A342" category="DMA EvoLiveMap" address="3F6E0" type="2D" scaling="Hex16">
		<table name="Ethanol Ignition Map Addr" type="Static X Axis" elements="2">
			<data>hi word</data> <data>lo word</data>
		</table>
	</table>

	<table name="Tephra Alt Base Wastegate Duty ROM=0003 8142 RAM=FFFF A642" category="DMA EvoLiveMap" address="3E7D8" type="2D" scaling="Hex16">
		<table name="Alt Base WGDC Map Addr" type="Static X Axis" elements="2">
			<data>hi word</data>
			<data>lo word</data>
		</table>
	</table>

	<table name="Tephra Alt Boost Desired Engine Load ROM=0003 81C2 RAM=FFFF A6C2" category="DMA EvoLiveMap" address="3E7DC" type="2D" scaling="Hex16">
		<table name="Alt Base WGDC Map Addr" type="Static X Axis" elements="2">
			<data>hi word</data>
			<data>lo word</data>
		</table>
	</table>
  -->
  <!-- End EvoLiveMap definitions -->

</rom>
