Code: Select all
<cheat desc="Maximum Start Level Selection">
<script state="on">
<action>temp0 =maincpu.mw@90CD</action> <!-- BCC $90C9 -->
<action>temp1 =maincpu.mb@9001</action> <!-- Rom Checksum -->
<action>temp2 =maincpu.pb@0126</action> <!-- Level Completed -1 -->
</script>
<script state="run">
<action>maincpu.mw@90CD=EAEA</action> <!-- NOP/NOP so the compare condition not met, listing all selectable levels -->
<action>maincpu.mb@9001=D1</action> <!-- Changes ROM checksum so it passes test -->
</script>
<script state="off">
<action>maincpu.mw@90CD=temp0 </action>
<action>maincpu.mb@9001=temp1 </action>
<action>maincpu.pb@0126=temp2 </action>
</script>
</cheat>