cheat for Mr. Cool (#363)

* cheat for Mr. Cool

* cheat for Mr. Cool

* cheat for Mr. Cool
This commit is contained in:
xotmatrix 2021-01-30 21:24:03 -05:00 committed by GitHub
parent 2e714d950f
commit 7745343e65
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 28 additions and 1 deletions

View File

@ -188,7 +188,7 @@
0000,MONSTER.MASH
0001,MONTEZUMA=Montezuma's Revenge
0001,MOON.PATROL
0000,MR.COOL=Mr. Cool
0001,MR.COOL=Mr. Cool
1001,MR.DO=Mr. Do!
1001,MR.ROBOT=Mr. Robot
0001,MS.PACMAN=Ms. Pacman

27
src/prelaunch/mr.cool.a Normal file
View File

@ -0,0 +1,27 @@
;license:MIT
;(c) 2021 by 4am/xot
!cpu 6502
!to "build/PRELAUNCH/MR.COOL",plain
*=$106
!source "src/prelaunch/common.a"
+ENABLE_ACCEL
lda #$60
sta $83C
jsr $800 ; decompress
+GET_MACHINE_STATUS
and #CHEATS_ENABLED
beq +
lda #$2C
sta $4C47 ; patch - don't decrease lives
sta $562F ; patch - don't increase lives
+ +DISABLE_ACCEL
jmp $4000
!if * > $1C0 {
!error "code is too large, ends at ", *
}