;this patch will add a death counter to VIP1-4(aa) roms included. ;note: it will make the srm file 4kb, 2kb files will not work. ;will only work for one save file. as in get 4 deaths in file 1 ;start a new game in file 2, you start with 4. !free = $15AAD0 ;you need to change this. you need 76/$4C bytes. !sram = $7007ED ;here are some values that will work ;vip1aa $15AAD0 ;vip2aa $1ECBB0 ;vip3aa $1DC770 ;vip4aa $17C810 ;use slogger for anything else. don't go above lorom $3Fxxxx header ;status bar x101A, 8E1A lorom org $00D0D8 nop #3 org $028766 ;score stuff? ;x10966 nop #3 org $02AE21 ;x13021 nop #3 lda $0F35,x adc $AD89,y nop #3 org $05CEF9 ;0x2D0F9 nop #12 ;{ org $008EC6 ;x010C6 jsl hijack0 nop #11 org $00F60A ;x0780A jsl hijack1 nop org !free ;no rats tag reset bytes hijack0: lda.l !sram+4 beq + rep #$20 lda.w #$0000 sta.l !sram sta.l !sram+2 sta.l !sram+4 sep #$20 + lda.l !sram+2 sta $00 stz $01 lda.l !sram+1 sta $03 lda.l !sram rtl hijack1: rep #$20 lda.l !sram clc adc.w #$0001 sta.l !sram sep #$20 lda.l !sram+2 adc #$00 sta.l !sram+2 ;restore hijack lda #$09 sta $1DFB rtl print "" print "It worked!"