mirror of
https://github.com/a2-4am/4cade.git
synced 2025-01-21 00:31:52 +00:00
36 lines
815 B
Plaintext
36 lines
815 B
Plaintext
;license:MIT
|
|
;(c) 2022 by qkumba
|
|
|
|
!cpu 6502
|
|
!to "build/PRELAUNCH.INDEXED/SPACE.RESCUE",plain
|
|
*=$106
|
|
|
|
!source "src/macros.a"
|
|
|
|
+ENABLE_ACCEL
|
|
|
|
lda #$60
|
|
sta $67DE
|
|
jsr $4B29 ; decompress
|
|
+NEW_RESET_VECTOR $200
|
|
; game leaks stack
|
|
|
|
+READ_RAM2_NO_WRITE
|
|
lda MachineStatus
|
|
and #CHEATS_ENABLED
|
|
beq +
|
|
lda #$ad
|
|
sta $77A1 ; patch - don't decrease lives
|
|
sta $7938 ; patch - don't decrease lives
|
|
sta $8243 ; patch - don't increase lives
|
|
sta $8726 ; patch - don't decrease fuel
|
|
+
|
|
jsr DisableAccelerator
|
|
+READ_ROM_NO_WRITE
|
|
|
|
jmp $9500
|
|
|
|
!if * > $1C0 {
|
|
!error "code is too large, ends at ", *
|
|
}
|