4cade/src/prelaunch/quasar.a

34 lines
774 B
Plaintext

;license:MIT
;(c) 2022 by qkumba
!cpu 6502
!to "build/PRELAUNCH.INDEXED/QUASAR",plain
*=$106
!source "src/prelaunch/common.a"
+ENABLE_ACCEL
lda #$60
sta $950B
jsr $5F36 ; decompress
+READ_RAM2_NO_WRITE
lda MachineStatus
and #CHEATS_ENABLED
beq +
lda #$a5
sta $F02 ; patch - don't decrease lives
sta $F04 ; patch - don't decrease lives
sta $120F ; patch - don't increase lives
+
ldx #0
stx $820
inx
stx $825 ; reset vector
jsr DisableAccelerator
+READ_ROM_NO_WRITE
jmp $800
!if * > $1C0 {
!error "code is too large, ends at ", *
}