4cade/src/prelaunch/early.bird.a

38 lines
788 B
Plaintext

;license:MIT
;(c) 2021-2022 by Frank M., qkumba
!cpu 6502
!to "build/PRELAUNCH.INDEXED/EARLY.BIRD",plain
*=$106
!source "src/prelaunch/common.a"
+ENABLE_ACCEL
lda #<hook
sta $941D
lda #>hook
sta $941E
jmp $6D00 ; decompress
hook lda #0
sta $BB5
lda #1
sta $BBA ; reset vector fix
+READ_RAM2_NO_WRITE
lda MachineStatus
and #CHEATS_ENABLED
beq +
lda #$ad
sta $65AD ; patch - don't decrease lives
sta $6CFC ; patch - don't increase lives
+
jsr DisableAccelerator
+READ_ROM_NO_WRITE
jmp $BB0
!if * > $1C0 {
!error "code is too large, ends at ", *
}