faster this, cheat at that

This commit is contained in:
Peter Ferrie 2019-10-12 15:18:11 -07:00
parent 925c3c18ae
commit 8506c37660
9 changed files with 147 additions and 3 deletions

File diff suppressed because one or more lines are too long

View File

@ -12,7 +12,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 66 game cheats
- Added 71 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 Apple IIgs

View File

@ -0,0 +1,26 @@
;license:MIT
;(c) 2019 by qkumba
!cpu 6502
!to "build/PRELAUNCH/ALIEN.RAIN",plain
*=$106
!source "src/prelaunch/common.a"
+ENABLE_ACCEL
lda #$60
sta $82e
sta $83c
jsr $800
+DISABLE_ACCEL
jsr $6000
+ENABLE_ACCEL
jsr $831
+GET_MACHINE_STATUS
and #CHEATS_ENABLED
beq +
dec $6a59
dec $72c1
+
+DISABLE_ACCEL
jmp $1000

View File

@ -0,0 +1,26 @@
;license:MIT
;(c) 2019 by qkumba
!cpu 6502
!to "build/PRELAUNCH/ALIEN.TYPHOON",plain
*=$106
!source "src/prelaunch/common.a"
+ENABLE_ACCEL
lda #$60
sta $472f
sta $4739
jsr $4710
+DISABLE_ACCEL
jsr $6000
+ENABLE_ACCEL
jsr $806
+GET_MACHINE_STATUS
and #CHEATS_ENABLED
beq +
dec $7270
dec $7b53
+
+DISABLE_ACCEL
jmp $2001

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

@ -0,0 +1,25 @@
;license:MIT
;(c) 2019 by qkumba
!cpu 6502
!to "build/PRELAUNCH/ARKANOID",plain
*=$106
!source "src/prelaunch/common.a"
+ENABLE_ACCEL
lda #$60
sta $97e
jsr $800
lda MachineStatus
and #CHEATS_ENABLED
beq +
lda #$b5
sta $145c
sta $1d65
+
lda $c083
jsr DisableAccelerator
lda $c08b
jsr $ee1f
jmp $981

View File

@ -0,0 +1,22 @@
;license:MIT
;(c) 2019 by qkumba
!cpu 6502
!to "build/PRELAUNCH/ASTEROID.BLASTR",plain
*=$106
!source "src/prelaunch/common.a"
+ENABLE_ACCEL
lda #$60
sta $501c
jsr $5000
+GET_MACHINE_STATUS
and #CHEATS_ENABLED
beq +
lda #0
sta $1133
sta $1530
+
+DISABLE_ACCEL
jmp $800

38
src/prelaunch/bad.dudes.a Normal file
View File

@ -0,0 +1,38 @@
;license:MIT
;(c) 2019 by qkumba
!cpu 6502
!to "build/PRELAUNCH/BAD.DUDES",plain
*=$106
jmp ++
cheat
jsr EnableAccelerator ; yes!
jsr $d357
jsr DisableAccelerator
lda $d51b
cmp #$c7
bne +
lda #$ad
sta $e6fb
+ rts
++
!source "src/prelaunch/common.a"
+ENABLE_ACCEL
lda #$60
sta $110b
jsr $1000
lda MachineStatus
and #CHEATS_ENABLED
beq +
lda #<cheat
sta $d336
lda #>cheat
sta $d337
+
jsr DisableAccelerator
lda #$c2
jmp $d300

View File

@ -7,6 +7,7 @@
!source "src/prelaunch/common.a"
+ENABLE_ACCEL
lda #$60
sta $8034
jsr $4ab0 ; decompress and show title
@ -17,4 +18,5 @@
sta $1619
sta $11ae
+
+DISABLE_ACCEL
jmp $1100

View File

@ -7,12 +7,16 @@
!source "src/prelaunch/common.a"
+ENABLE_ACCEL
lda #$60
sta $52DB
jsr $527C ; decompress 1
+DISABLE_ACCEL
jsr $8d4
+ENABLE_ACCEL
lda #$60
sta $BD40
jsr $BD1D ; decompress 2
jsr $BD20 ; decompress 2
+GET_MACHINE_STATUS
and #CHEATS_ENABLED
beq +
@ -22,4 +26,5 @@
sta $6C9A ; patch - don't increase lives
sta $6C9D ; patch - don't increase lives
+
+DISABLE_ACCEL
jmp $7200