some cheats

This commit is contained in:
Peter Ferrie 2020-01-24 14:17:13 -08:00
parent 1edaa1ad86
commit 7ab179b187
8 changed files with 209 additions and 1 deletions

File diff suppressed because one or more lines are too long

29
src/prelaunch/aquatron.a Normal file
View File

@ -0,0 +1,29 @@
;license:MIT
;(c) 2020 by qkumba
!cpu 6502
!to "build/PRELAUNCH/AQUATRON",plain
*=$106
!source "src/prelaunch/common.a"
+ENABLE_ACCEL
lda #>(callback - 1)
sta $5FC3
lda #<(callback - 1)
sta $5FC6
jmp $59C2 ; decompress
callback
+GET_MACHINE_STATUS
and #CHEATS_ENABLED
beq +
lda #$ad
sta $7696 ; patch - don't decrease lives
+
+DISABLE_ACCEL
jmp $400
!if * > $1C0 {
!error "code is too large, ends at ", *
}

View File

@ -0,0 +1,28 @@
;license:MIT
;(c) 2020 by qkumba
!cpu 6502
!to "build/PRELAUNCH/CRAZY.MAZEY",plain
*=$106
!source "src/prelaunch/common.a"
+ENABLE_ACCEL
lda #$60
sta $3F0B
jsr $3E47 ; decompress
+GET_MACHINE_STATUS
and #CHEATS_ENABLED
beq +
lda #$ad
sta $EC2 ; patch - don't decrease lives
sta $F16 ; patch - don't erase sprite
sta $F19 ; patch - don't erase sprite
sta $F1C ; patch - don't erase sprite
sta $1105 ; patch - don't increase lives
+ +DISABLE_ACCEL
jmp $50E0
!if * > $1C0 {
!error "code is too large, ends at ", *
}

24
src/prelaunch/dino.eggs.a Normal file
View File

@ -0,0 +1,24 @@
;license:MIT
;(c) 2020 by qkumba
!cpu 6502
!to "build/PRELAUNCH/DINO.EGGS",plain
*=$106
!source "src/prelaunch/common.a"
+ENABLE_ACCEL
lda #$60
sta $2186
jsr $2100 ; decompress
+GET_MACHINE_STATUS
and #CHEATS_ENABLED
beq +
lda #$ad
sta $1895 ; patch - don't decrease lives
+ +DISABLE_ACCEL
jmp $A892
!if * > $1C0 {
!error "code is too large, ends at ", *
}

30
src/prelaunch/frogger.a Normal file
View File

@ -0,0 +1,30 @@
;license:MIT
;(c) 2020 by qkumba
!cpu 6502
!to "build/PRELAUNCH/FROGGER",plain
*=$106
!source "src/prelaunch/common.a"
+ENABLE_ACCEL
lda #<callback
sta $3EFF
lda #>callback
sta $3F00
jmp $3ED9 ; decompress
callback
jsr $BF00
+GET_MACHINE_STATUS
and #CHEATS_ENABLED
beq +
lda #$ad
sta $48B0 ; patch - don't decrease lives
sta $48CD ; patch - don't erase sprite
+ +DISABLE_ACCEL
rts
!if * > $1C0 {
!error "code is too large, ends at ", *
}

View File

@ -0,0 +1,46 @@
;license:MIT
;(c) 2020 by qkumba
!cpu 6502
!to "build/PRELAUNCH/FROGGER.II",plain
*=$106
!source "src/prelaunch/common.a"
+ENABLE_ACCEL
lda #$60
sta $6068
jsr $6000 ; decompress
lda #$4C
sta $B04A
lda #<callback
sta $B04B
lda #>callback
sta $B04C
+DISABLE_ACCEL
jmp $800
callback
+ENABLE_ACCEL
+GET_MACHINE_STATUS
and #CHEATS_ENABLED
beq +
jsr $B050
ldx #$A5
lda $B158
cmp #$30
bne +
stx $A1C8 ; patch - don't decrease lives
bne ++
+ cmp #$31
bne +
lda #$BD
sta $FB3 ; patch - don't decrease lives
bne ++
+ stx $9A35 ; patch - don't decrease lives
++ +DISABLE_ACCEL
jmp ($B04E)
!if * > $1C0 {
!error "code is too large, ends at ", *
}

View File

@ -0,0 +1,26 @@
;license:MIT
;(c) 2020 by qkumba
!cpu 6502
!to "build/PRELAUNCH/GALAXY.GATES",plain
*=$106
!source "src/prelaunch/common.a"
+ENABLE_ACCEL
lda #$60
sta $6013
jsr $6000 ; decompress
+GET_MACHINE_STATUS
and #CHEATS_ENABLED
beq +
lda #$A5
sta $20F3 ; patch - don't decrease lives
sta $20BB ; patch - don't increase lives
+ +DISABLE_ACCEL
jmp $3A00
!if * > $1C0 {
!error "code is too large, ends at ", *
}

25
src/prelaunch/guardian.a Normal file
View File

@ -0,0 +1,25 @@
;license:MIT
;(c) 2020 by qkumba
!cpu 6502
!to "build/PRELAUNCH/GUARDIAN",plain
*=$106
!source "src/prelaunch/common.a"
+ENABLE_ACCEL
lda #$60
sta $934F
jsr $7400 ; decompress
+GET_MACHINE_STATUS
and #CHEATS_ENABLED
beq +
lda #$AD
sta $5799 ; patch - don't decrease lives
+ +DISABLE_ACCEL
jmp $4000
!if * > $1C0 {
!error "code is too large, ends at ", *
}