<?xml version="1.0" encoding="utf-8"?>
<CheatTable CheatEngineTableVersion="29">
  <CheatEntries>
    <CheatEntry>
      <ID>56</ID>
      <Description>"Automatic Memory Address Finder by mgr.inz.Player"</Description>
      <Options moHideChildren="1" moDeactivateChildrenAsWell="1"/>
      <LastState/>
      <VariableType>Auto Assembler Script</VariableType>
      <AssemblerScript>{
  Source: https://fearlessrevolution.com/viewtopic.php?f=11&amp;t=7264&amp;p=129713#p129522

  mgr.inz.Player has been so kind to provide us with a lua script which
  automatiscally finds the correct addresses for DOSBox.
  The great thing is, that our tables are auto-adapting to new versions
  using this great script.
}

[ENABLE]
{$Lua}
if syntaxcheck then return end

for i,v in ipairs(enumMemoryRegions()) do
  if v.RegionSize==0x1001000 and v.AllocationProtect==4 then
    unregisterSymbol('GameMemoryStart') registerSymbol('GameMemoryStart',v.BaseAddress)
  end
  if v.RegionSize==0x201000 and v.AllocationProtect==4 then
    unregisterSymbol('VideoMemory') registerSymbol('VideoMemory',v.BaseAddress+0x20)
  end
  if v.RegionSize==0x402000 and v.AllocationProtect==4 then
    unregisterSymbol('GameOtherMemoryStart') registerSymbol('GameOtherMemoryStart',v.BaseAddress)
  end
end
{$Asm}

[DISABLE]
{$Lua}
unregisterSymbol('GameMemoryStart')
unregisterSymbol('VideoMemory')
unregisterSymbol('GameOtherMemoryStart')
{$Asm}
</AssemblerScript>
      <CheatEntries>
        <CheatEntry>
          <ID>57</ID>
          <Description>"GameMemory"</Description>
          <LastState Value="27394493" RealAddress="0A65A020"/>
          <VariableType>4 Bytes</VariableType>
          <Address>GameMemoryStart+20</Address>
          <CheatEntries>
            <CheatEntry>
              <ID>73</ID>
              <Description>"Lives"</Description>
              <LastState Value="3" RealAddress="0A69F422"/>
              <VariableType>Byte</VariableType>
              <Address>+45402</Address>
            </CheatEntry>
            <CheatEntry>
              <ID>74</ID>
              <Description>"Health"</Description>
              <LastState Value="100" RealAddress="0A69F424"/>
              <VariableType>Byte</VariableType>
              <Address>+45404</Address>
            </CheatEntry>
            <CheatEntry>
              <ID>75</ID>
              <Description>"Ammo"</Description>
              <LastState Value="6" RealAddress="0A69F426"/>
              <VariableType>Byte</VariableType>
              <Address>+45406</Address>
            </CheatEntry>
            <CheatEntry>
              <ID>76</ID>
              <Description>"Weapon-Arsenal (3=max)"</Description>
              <LastState Value="3" RealAddress="0A69F42A"/>
              <VariableType>Byte</VariableType>
              <Address>+4540A</Address>
            </CheatEntry>
            <CheatEntry>
              <ID>77</ID>
              <Description>"Score"</Description>
              <LastState Value="537528834" RealAddress="0A69E8DA"/>
              <VariableType>4 Bytes</VariableType>
              <Address>+448BA</Address>
            </CheatEntry>
          </CheatEntries>
        </CheatEntry>
      </CheatEntries>
    </CheatEntry>
    <CheatEntry>
      <ID>8</ID>
      <Description>"MemBase of DosBox 0.74-2.1"</Description>
      <LastState Value="1" RealAddress="0A65A020"/>
      <Color>000000</Color>
      <VariableType>Binary</VariableType>
      <BitStart>0</BitStart>
      <BitLength>1</BitLength>
      <ShowAsBinary>0</ShowAsBinary>
      <Address>0x1D4A380</Address>
      <Offsets>
        <Offset>0</Offset>
      </Offsets>
      <CheatEntries>
        <CheatEntry>
          <ID>65</ID>
          <Description>"Lives"</Description>
          <LastState Value="3" Activated="1" RealAddress="0A69F422"/>
          <VariableType>Byte</VariableType>
          <Address>+45402</Address>
        </CheatEntry>
        <CheatEntry>
          <ID>66</ID>
          <Description>"Health"</Description>
          <LastState Value="100" Activated="1" RealAddress="0A69F424"/>
          <VariableType>Byte</VariableType>
          <Address>+45404</Address>
        </CheatEntry>
        <CheatEntry>
          <ID>67</ID>
          <Description>"Ammo"</Description>
          <LastState Value="6" Activated="1" RealAddress="0A69F426"/>
          <VariableType>Byte</VariableType>
          <Address>+45406</Address>
        </CheatEntry>
        <CheatEntry>
          <ID>72</ID>
          <Description>"Weapon-Arsenal (3=max)"</Description>
          <LastState Value="3" RealAddress="0A69F42A"/>
          <VariableType>Byte</VariableType>
          <Address>+4540A</Address>
        </CheatEntry>
        <CheatEntry>
          <ID>68</ID>
          <Description>"Score"</Description>
          <LastState Value="537528834" RealAddress="0A69E8DA"/>
          <VariableType>4 Bytes</VariableType>
          <Address>+448BA</Address>
        </CheatEntry>
      </CheatEntries>
    </CheatEntry>
  </CheatEntries>
  <UserdefinedSymbols/>
</CheatTable>
