2021-10-31 22:20:30 +00:00
|
|
|
;license:MIT
|
2022-09-27 17:20:04 +00:00
|
|
|
;(c) 2021-2022 by Frank M., qkumba
|
2021-10-31 22:20:30 +00:00
|
|
|
|
|
|
|
!cpu 6502
|
2022-10-01 00:04:02 +00:00
|
|
|
!to "build/DEMO/DUNG.BEETLES#060300",plain
|
2021-10-31 22:20:30 +00:00
|
|
|
*=$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
|
2021-10-31 22:20:30 +00:00
|
|
|
|
|
|
|
lda #$60
|
|
|
|
sta $603A
|
|
|
|
jsr $6000 ; decompress
|
|
|
|
|
2022-09-27 17:20:04 +00:00
|
|
|
ldx #1
|
|
|
|
stx $083E ; reset vector patch
|
2021-10-31 22:20:30 +00:00
|
|
|
|
|
|
|
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 -
|
2021-10-31 22:20:30 +00:00
|
|
|
|
|
|
|
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
|
2021-10-31 22:20:30 +00:00
|
|
|
|
2024-05-25 21:24:57 +00:00
|
|
|
title +PSTRING "DUNG.BEETLES"
|
2021-10-31 22:20:30 +00:00
|
|
|
|
|
|
|
!if * > $3F0 {
|
|
|
|
!error "code is too large, ends at ", *
|
|
|
|
}
|