4cade/src/prelaunch/conan.a

51 lines
1.0 KiB
Plaintext
Raw Normal View History

2019-09-14 05:30:01 +00:00
;license:MIT
2019-12-25 22:15:36 +00:00
;(c) 2019 by qkumba/Frank M.
2019-09-14 05:30:01 +00:00
!cpu 6502
!to "build/PRELAUNCH.INDEXED/CONAN",plain
2019-09-15 02:57:52 +00:00
*=$106
!source "src/prelaunch/common.a"
2019-09-14 05:30:01 +00:00
2019-10-13 18:24:59 +00:00
+ENABLE_ACCEL
lda #$60
sta $81e
jsr $800
lda #$60
sta $bd40
jsr $bc94
2019-12-27 03:27:53 +00:00
lda #0 ; vector fixes
sta $7C09 ; to $3FE - IRQ
lda #1
sta $7C01 ; to $3F3 - reset
sta $7C0B ; to $3FF - IRQ
2019-12-27 03:27:53 +00:00
lda #$A4
sta $7C02 ; to $3F4 - reset ($3F2 doesn't change)
2019-12-27 03:27:53 +00:00
2019-10-13 18:24:59 +00:00
+DISABLE_ACCEL
jsr $5ff8 ; decompress, run intro
2019-12-19 07:22:06 +00:00
2019-10-13 18:24:59 +00:00
+ENABLE_ACCEL
lda #$6c
sta $bd40
lda #$60
sta $6ba2
jsr $3ffc
jsr $be00
+GET_MACHINE_STATUS
and #CHEATS_ENABLED
beq +
lda #$ad
sta $19f5
sta $1a00
sta $1b4e
;;sta $a973
+
2019-10-13 18:24:59 +00:00
+DISABLE_ACCEL
jmp $6ba5
2019-12-13 05:51:54 +00:00
!if * > $1C0 {
!error "code is too large, ends at ", *
}