add cheat for Lady Tut

This commit is contained in:
4am 2019-10-06 11:16:12 -04:00
parent 5d8900e743
commit 8f3c220fda
3 changed files with 34 additions and 2 deletions

File diff suppressed because one or more lines are too long

View File

@ -11,7 +11,7 @@
- Added help screen (press ? in search or browse mode to show)
- Added global cheat mode (press Ctrl-C in search or browse mode to toggle)
- Added 56 game cheats
- Added 57 game cheats
- Fixed corrupted graphics in Asteroid Blaster
- Fixed corrupted graphics in Sneakers game, demo, and screenshots, and now we are entirely done with this I promise
- Fixed Axis Assassin demo hanging on IIgs

32
src/prelaunch/lady.tut.a Normal file
View File

@ -0,0 +1,32 @@
;license:MIT
;(c) 2019 by 4am
!cpu 6502
!to "build/PRELAUNCH/LADY.TUT",plain
*=$106
!source "src/prelaunch/common.a"
+GET_MACHINE_STATUS
and #CHEATS_ENABLED
sta cheat
ldx #(end_patch-patch-1) ; copy patch code to zero page (stack will be destroyed by the time we need to patch)
- lda patch,x
sta $F0,x
dex
bpl -
lda #$F0
sta $084F
lda #$00
sta $0850
jmp $0800 ; decompress
patch
cheat=*+1
lda #$00 ; SMC
beq +
; lives in $07
lda #$A5
sta $76AC ; patch - don't decrease lives
+
jmp $8460
end_patch