4cade/src/prelaunch/lamb.chops.a

34 lines
704 B
Plaintext
Raw Normal View History

2022-05-12 19:06:41 +00:00
;license:MIT
;(c) 2022 by qkumba
!cpu 6502
!to "build/PRELAUNCH.INDEXED/LA",plain
*=$106
!source "src/prelaunch/common.a"
+ENABLE_ACCEL
lda #$60
sta $87C
sta $896
jsr $800 ; decompress
+DISABLE_ACCEL
jsr $300
+ENABLE_ACCEL
jsr $87F
+READ_RAM2_NO_WRITE
lda MachineStatus
and #CHEATS_ENABLED
beq +
dec $8C77 ; patch - don't decrease lives
dec $8DF7 ; patch - don't increase lives
+
jsr DisableAccelerator
+READ_ROM_NO_WRITE
jmp $8000
!if * > $1C0 {
!error "code is too large, ends at ", *
}