This commit is contained in:
4am 2020-03-05 12:45:40 -05:00
commit 3eb335becc
3 changed files with 67 additions and 2 deletions

File diff suppressed because one or more lines are too long

View File

@ -42,7 +42,6 @@ Station 5
Super Bunny
Super Huey
Super Taxman II
Techno Cop [DHGR] [priority]
Tharolian Tunnels
Video Vegas
World Karate Championship

66
src/prelaunch/technocop.a Normal file
View File

@ -0,0 +1,66 @@
;license:MIT
;(c) 2020 by qkumba
!cpu 6502
!to "build/PRELAUNCH/TECHNOCOP",plain
*=$106
!source "src/prelaunch/common.a"
+READ_RAM2_NO_WRITE
jsr EnableAccelerator
lda MachineStatus
+READ_ROM_NO_WRITE
and #CHEATS_ENABLED
pha
lda #$60
sta $A05
jsr $800 ; load "DOS"
pla
beq +
ldy #(cheat_e - cheat_b) - 1
- lda cheat_b, y
sta $FB60, y
dey
bpl -
lda #$20
sta $FA85
lda #$60
sta $FA86
lda #$FB
sta $FA87
+ jsr DisableAccelerator
jmp $F800
cheat_b
ldx $FFC3
ldy $FFC4
lda $FA5A
bne cheat_run
cheat_drive
cpx #$1D
bne cheat_done
cpy #$0F
bne cheat_done
lda #$0A
sta $FDAB ; patch - don't apply damage
bne cheat_done
cheat_run
cpx #$1E
bne cheat_done
cpy #$06
bne cheat_done
lda #$AD
sta $FC18 ; patch - don't decrease lives
cheat_done
lda $FFC9
rts
cheat_e
!if * > $1C0 {
!error "code is too large, ends at ", *
}