This forum is for posting M.A.M.E. Work In Progress "Arcade"cheats that are not quite ready for the prime time. If the cheats are buggy or the cheat descriptions are non-standard then please post them here. Help maybe given but there are no guarantees and they will only be added to the cheat file when the cheat file maintainer is happy with them.
jman
Posts: 1296 Joined: Tue Dec 01, 2020 1:24 pm
Been thanked: 9 times
Post
by jman » Wed Jan 04, 2023 10:55 am
andromed will work in 0.252.
Code: Select all
<cheat desc="no hit">
<script state="on">
<action>maincpu.mw@1e85 = 0bd0</action> <!-- bullet -->
<action>maincpu.mw@29cd = 0b90</action> <!-- enemy -->
</script>
<script state="off">
<action>maincpu.mw@1e85 = 6cf6</action>
<action>maincpu.mw@29cd = 7be6</action>
</script>
</cheat>
<cheat desc="auto fire">
<script state="on">
<action>maincpu.mb@1fc2 = 01</action>
</script>
<script state="off">
<action>maincpu.mb@1fc2 = 03</action>
</script>
</cheat>
<cheat desc="bullet speed">
<parameter min="0x01" max="0x05" step="0x01" />
<script state="on">
<action>maincpu.mb@272a = 2f</action>
<action>maincpu.mb@274a = e8</action>
<action>maincpu.mq@2fe9 = a8682b00204800a9</action>
<action>maincpu.mq@2ff1 = f2d0988804f07aa5</action>
<action>maincpu.mq@2ff9 = 0000000000000060</action>
<!--
2fe9 | a9 xx : lda #$xx
2feb | 48 : pha
2fec | 20 00 2b : jsr $2b00
2fef | 68 : pla
2ff0 | a8 : tay
2ff1 | a5 7a : lda $7a
2ff3 | f0 04 : beq $2ff9
2ff5 | 88 : dey
2ff6 | 98 : tya
2ff7 | d0 f2 : bne $2feb
2ff9 | 60 : rts
-->
</script>
<script state="change">
<action>maincpu.mb@2fea = param</action>
</script>
<script state="off">
<action>maincpu.mb@272a = 2a</action>
<action>maincpu.mb@274a = ff</action>
<action>maincpu.mq@2fe9 = 0000000000000000</action>
<action>maincpu.mq@2ff1 = 0000000000000000</action>
<action>maincpu.mq@2ff9 = 0000000000000000</action>
</script>
</cheat>
jman
Posts: 1296 Joined: Tue Dec 01, 2020 1:24 pm
Been thanked: 9 times
Post
by jman » Wed Jan 11, 2023 10:17 am
I add "player speed" and "bullet speed" codes. These use memory region : $3000 - $3fff installed by lua plug-in. (Default is "unmapped" area).
Check "http://www.mamecheat.co.uk/forums/viewtopic.php?f=10&t=12237&start=114".
Code: Select all
<cheat desc="player speed">
<parameter min="0x01" max="0x05" step="0x01" />
<script state="on">
<action>maincpu.mb@272d = 2f</action>
<action>maincpu.mb@274d = ff</action>
<action>maincpu.pq@3000 = a868206f204800a9</action>
<action>maincpu.pq@3008 = 00000060f6d09888</action>
<!--
3000 | a9 xx : lda #$xx
3002 | 48 : pha
3003 | 20 6f 20 : jsr $206f
3006 | 68 : pla
3007 | a8 : tay
3008 | 88 : dey
3009 | 98 : tya
300a | d0 f6 : bne $3002
300c | 60 : rts
-->
</script>
<script state="change">
<action>maincpu.pb@3001 = param</action>
</script>
<script state="off">
<action>maincpu.mb@272d = 20</action>
<action>maincpu.mb@274d = 6e</action>
<action>maincpu.pq@3000 = 0000000000000000</action>
<action>maincpu.pq@3008 = 0000000000000000</action>
</script>
</cheat>
<cheat desc="bullet speed">
<parameter min="0x01" max="0x05" step="0x01" />
<script state="on">
<action>maincpu.mb@272a = 30</action>
<action>maincpu.mb@274a = 0f</action>
<action>maincpu.pq@3010 = a8682b00204800a9</action>
<action>maincpu.pq@3018 = f2d0988804f07aa5</action>
<action>maincpu.pq@3020 = 0000000000000060</action>
<!--
3010 | a9 xx : lda #$xx
3012 | 48 : pha
3013 | 20 00 2b : jsr $2b00
3016 | 68 : pla
3017 | a8 : tay
3018 | a5 7a : lda $7a
301a | f0 04 : beq $3020
301c | 88 : dey
301d | 98 : tya
301e | d0 f2 : bne $3012
3020 | 60 : rts
-->
</script>
<script state="change">
<action>maincpu.pb@3011 = param</action>
</script>
<script state="off">
<action>maincpu.mb@272a = 2a</action>
<action>maincpu.mb@274a = ff</action>
<action>maincpu.pq@3010 = 0000000000000000</action>
<action>maincpu.pq@3018 = 0000000000000000</action>
<action>maincpu.pq@3020 = 0000000000000000</action>
</script>
</cheat>
jman
Posts: 1296 Joined: Tue Dec 01, 2020 1:24 pm
Been thanked: 9 times
Post
by jman » Mon May 26, 2025 9:39 am
andromed.xml
Code: Select all
<!-- Andromeda SS (Japan?) -->
<mamecheat version="1">
<cheat desc="no hit">
<script state="on">
<action>maincpu.mw@1E85 = 0BD0</action> <!-- bullet -->
<action>maincpu.mw@29CD = 0B90</action> <!-- enemy -->
</script>
<script state="off">
<action>maincpu.mw@1E85 = 6CF6</action>
<action>maincpu.mw@29CD = 7BE6</action>
</script>
</cheat>
<cheat desc="rapid fire">
<script state="on">
<action>maincpu.mb@1FC2 = 01</action>
</script>
<script state="off">
<action>maincpu.mb@1FC2 = 03</action>
</script>
</cheat>
<cheat desc="player speed">
<parameter min="0x01" max="0x05" step="0x01" />
<script state="on">
<action>maincpu.mb@272D = 02</action>
<action>maincpu.mb@274D = CF</action>
</script>
<script state="run">
<action>maincpu.pq@02D0 = A868206F204800A9</action>
<action>maincpu.pq@02D8 = 00000060F6D09888</action>
<!--
02D0 | A9 xx : lda #$xx
02D2 | 48 : pha
02D3 | 20 6F 20 : jsr $206f
02D6 | 68 : pla
02D7 | A8 : tay
02D8 | 88 : dey
02D9 | 98 : tya
02DA | D0 F6 : bne $02d2
02DC | 60 : rts
-->
<action>maincpu.pb@02D1 = param</action>
</script>
<script state="off">
<action>maincpu.mb@272D = 20 </action>
<action>maincpu.mb@274D = 6E </action>
<action>maincpu.pq@02D0 = 0000000000000000</action>
<action>maincpu.pq@02D0 = 0000000000000000</action>
</script>
</cheat>
<cheat desc="bullet speed">
<parameter min="0x01" max="0x05" step="0x01" />
<script state="on">
<action>maincpu.mb@272A = 02</action>
<action>maincpu.mb@274A = DF</action>
</script>
<script state="run">
<action>maincpu.pq@02E0 = A8682B00204800A9</action>
<action>maincpu.pq@02E8 = F2D0988804F07AA5</action>
<action>maincpu.pq@02F0 = 0000000000000060</action>
<!--
02E0 | A9 xx : lda #$xx
02E2 | 48 : pha
02E3 | 20 00 2B : jsr $2b00
02E6 | 68 : pla
02E7 | A8 : tay
02E8 | A5 7A : lda $7a
02EA | F0 04 : beq $02f0
02EC | 88 : dey
02ED | 98 : tya
02EE | D0 F2 : bne $02e2
02F0 | 60 : rts
-->
<action>maincpu.pb@02E1 = param</action>
</script>
<script state="off">
<action>maincpu.mb@272A = 2A </action>
<action>maincpu.mb@274A = FF </action>
<action>maincpu.pq@02E0 = 0000000000000000</action>
<action>maincpu.pq@02E8 = 0000000000000000</action>
<action>maincpu.pq@02F0 = 0000000000000000</action>
</script>
</cheat>
</mamecheat>
"player speed" and "bullet speed" : Moved custom routine into RAM region instead of "unmapped" area with LUA script.
$02D0 - $02F8 seem to be unused but bug may happen when other routine accesses this area.