2019-09-16 22:49:55 +00:00
|
|
|
;license:MIT
|
2021-05-13 20:27:09 +00:00
|
|
|
;(c) 2019, 2021 by 4am/Frank M./qkumba
|
2019-09-16 22:49:55 +00:00
|
|
|
|
|
|
|
!cpu 6502
|
2021-10-16 01:34:39 +00:00
|
|
|
!to "build/PRELAUNCH.INDEXED/AC",plain
|
2019-09-16 22:49:55 +00:00
|
|
|
*=$106
|
|
|
|
|
|
|
|
!source "src/prelaunch/common.a"
|
|
|
|
|
2019-10-05 01:34:49 +00:00
|
|
|
+ENABLE_ACCEL
|
2019-09-16 22:49:55 +00:00
|
|
|
lda #$60
|
|
|
|
sta $2076
|
|
|
|
jsr $1FFD ; decompress
|
2021-05-13 20:27:09 +00:00
|
|
|
+GET_MOCKINGBOARD_SLOT_AND_MACHINE_STATUS
|
2019-10-05 01:34:49 +00:00
|
|
|
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
|
2021-05-13 20:27:09 +00:00
|
|
|
+
|
|
|
|
bcc +
|
|
|
|
stx mbslot+1
|
|
|
|
lda #0
|
|
|
|
sta $1C1B
|
|
|
|
lda #<callback
|
|
|
|
sta $1C1D
|
|
|
|
lda #>callback
|
|
|
|
sta $1C1E
|
2019-10-05 01:34:49 +00:00
|
|
|
+
|
2019-12-17 14:46:30 +00:00
|
|
|
lda #0
|
|
|
|
sta $10AC
|
|
|
|
lda #1
|
|
|
|
sta $10B1 ; reset vector patch
|
|
|
|
|
2019-10-05 01:34:49 +00:00
|
|
|
+DISABLE_ACCEL
|
2019-09-16 22:49:55 +00:00
|
|
|
jmp $1000
|
2019-12-13 05:51:54 +00:00
|
|
|
|
2021-05-13 20:27:09 +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 ", *
|
|
|
|
}
|