4cade/src/demo/dung.beetles.a

56 lines
1.1 KiB
Plaintext
Raw Normal View History

;license:MIT
2022-09-27 17:20:04 +00:00
;(c) 2021-2022 by Frank M., qkumba
!cpu 6502
2022-10-01 00:04:02 +00:00
!to "build/DEMO/DUNG.BEETLES#060300",plain
*=$300
!source "src/constants.a" ; no code in these
!source "src/macros.a"
2022-09-27 17:20:04 +00:00
+ENABLE_ACCEL_LC
2022-09-10 04:58:15 +00:00
+LOAD_XSINGLE title
lda #$60
sta $603A
jsr $6000 ; decompress
2022-09-27 17:20:04 +00:00
ldx #1
stx $083E ; reset vector patch
lda #$60
sta $847
jsr $800 ; memory move
ldx #6-1
- lda patch, x
sta $9B93, x
dex
bpl - ; disable button support on title screen
2022-09-27 17:20:04 +00:00
ldx #3-1
- lda patch2,x
sta $9B7D,x
sta $97D5,x ; set exits
dex
bpl -
lda #$D0
sta $1C17
sta $12CE
sta $9B4D
sta $9B56 ; disable sound
+DISABLE_ACCEL
jmp $9600
patch !byte $A9,$01,$EA,$EA,$EA,$EA
2022-09-27 17:20:04 +00:00
patch2 !byte $4C,$00,$01
2024-05-25 21:24:57 +00:00
title +PSTRING "DUNG.BEETLES"
!if * > $3F0 {
!error "code is too large, ends at ", *
}