4cade/src/prelaunch/joust.a

40 lines
829 B
Plaintext
Raw Normal View History

2019-09-13 22:30:01 -07:00
;license:MIT
2019-12-25 14:15:36 -08:00
;(c) 2019 by qkumba/Frank M.
2019-09-13 22:30:01 -07:00
!cpu 6502
!to "build/PRELAUNCH.INDEXED/JOUST",plain
2019-09-14 22:57:52 -04:00
*=$106
!source "src/macros.a"
2019-09-13 22:30:01 -07:00
2019-10-13 15:19:48 -07:00
+ENABLE_ACCEL
lda #$60
2019-10-13 15:19:48 -07:00
sta $82f
sta $85e
jsr $800 ; decompress and show title/options screens
2019-10-13 15:19:48 -07:00
+DISABLE_ACCEL
jsr $7000
+ENABLE_ACCEL
jsr $832
+GET_MACHINE_STATUS
and #CHEATS_ENABLED
beq +
lda #$ad
sta $2bc9
sta $2b6b
+
2019-12-19 18:19:28 -08:00
lda #$4C
sta $A3DC
2020-04-06 20:29:16 -07:00
ldx #0
stx $A3DD
stx $2C0E
inx
stx $A3DE ; reset vector patch
stx $2C0F ; quit handler patch
2019-10-13 15:19:48 -07:00
+DISABLE_ACCEL
jmp $3e00
2019-12-12 21:51:54 -08:00
!if * > $1C0 {
!error "code is too large, ends at ", *
}