4cade/src/prelaunch/cider.spider.a

45 lines
940 B
Plaintext
Raw Normal View History

2019-09-16 22:49:55 +00:00
;license:MIT
;(c) 2019, 2021 by 4am/Frank M./qkumba
2019-09-16 22:49:55 +00:00
!cpu 6502
!to "build/PRELAUNCH.INDEXED/AC",plain
2019-09-16 22:49:55 +00:00
*=$106
!source "src/prelaunch/common.a"
+ENABLE_ACCEL
2019-09-16 22:49:55 +00:00
lda #$60
sta $2076
jsr $1FFD ; decompress
+GET_MOCKINGBOARD_SLOT_AND_MACHINE_STATUS
and #CHEATS_ENABLED
beq +
2019-09-16 22:49:55 +00:00
lda #$BD
sta $19C5 ; patch - don't decrease lives
sta $196A ; patch - don't increase lives
+
bcc +
stx mbslot+1
lda #0
sta $1C1B
lda #<callback
sta $1C1D
lda #>callback
sta $1C1E
+
2019-12-17 14:46:30 +00:00
lda #0
sta $10AC
lda #1
sta $10B1 ; reset vector patch
+DISABLE_ACCEL
2019-09-16 22:49:55 +00:00
jmp $1000
2019-12-13 05:51:54 +00:00
callback
mbslot lda #$D1 ; SMC
jmp $963D
2019-12-13 05:51:54 +00:00
!if * > $1C0 {
!error "code is too large, ends at ", *
}