2021-03-10 19:29:50 -08:00
|
|
|
;license:MIT
|
2022-05-18 11:36:22 -07:00
|
|
|
;(c) 2021-2022 by Frank M., qkumba
|
2021-03-10 19:29:50 -08:00
|
|
|
|
|
|
|
!cpu 6502
|
2021-10-15 21:34:39 -04:00
|
|
|
!to "build/PRELAUNCH.INDEXED/STAR.DANCE",plain
|
2021-03-10 19:29:50 -08:00
|
|
|
*=$106
|
|
|
|
|
2024-05-25 19:18:49 -04:00
|
|
|
!source "src/macros.a"
|
2021-03-10 19:29:50 -08:00
|
|
|
|
|
|
|
+ENABLE_ACCEL
|
|
|
|
lda #<hook
|
|
|
|
sta $1FB9+1
|
|
|
|
lda #>hook
|
|
|
|
sta $1FB9+2
|
2021-09-08 12:01:11 -07:00
|
|
|
jmp $1F71 ; decompress
|
2021-03-10 19:29:50 -08:00
|
|
|
|
|
|
|
hook lda #0
|
|
|
|
sta $7007
|
|
|
|
lda #1
|
|
|
|
sta $700C ; reset vector fix
|
|
|
|
|
2022-05-18 11:36:22 -07:00
|
|
|
+READ_RAM2_NO_WRITE
|
|
|
|
lda MachineStatus
|
|
|
|
and #CHEATS_ENABLED
|
|
|
|
beq +
|
|
|
|
lda #$a5
|
|
|
|
sta $1272 ; patch - don't decrease time
|
|
|
|
+
|
|
|
|
jsr DisableAccelerator
|
|
|
|
+READ_ROM_NO_WRITE
|
2021-03-10 19:29:50 -08:00
|
|
|
jmp $7000
|
|
|
|
|
|
|
|
!if * > $1C0 {
|
|
|
|
!error "code is too large, ends at ", *
|
2021-10-15 21:34:39 -04:00
|
|
|
}
|