2021-10-27 00:11:02 +00:00
|
|
|
;license:MIT
|
2022-09-27 17:20:04 +00:00
|
|
|
;(c) 2021-2022 by Frank M., qkumba
|
2021-10-27 00:11:02 +00:00
|
|
|
|
|
|
|
!cpu 6502
|
2022-10-01 00:04:02 +00:00
|
|
|
!to "build/DEMO/DIG.DUG#060300",plain
|
2021-10-27 00:11:02 +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-27 00:11:02 +00:00
|
|
|
|
|
|
|
lda #$60
|
|
|
|
sta $826
|
|
|
|
jsr $800 ; decompress
|
|
|
|
|
2022-09-27 17:20:04 +00:00
|
|
|
ldx #3-1
|
|
|
|
- lda patch,x
|
|
|
|
sta $A12E,x
|
|
|
|
sta $A3D4,x ; set exits
|
|
|
|
lda patch2,x
|
|
|
|
sta $A3AE,x ; skip title screen and input selection
|
|
|
|
dex
|
|
|
|
bpl -
|
2021-10-27 00:11:02 +00:00
|
|
|
|
|
|
|
+DISABLE_ACCEL
|
|
|
|
|
|
|
|
jmp $8000
|
|
|
|
|
2022-09-27 17:20:04 +00:00
|
|
|
patch !byte $4C,$00,$01
|
|
|
|
patch2 !byte $4C,$B9,$A3
|
|
|
|
|
2021-10-27 00:11:02 +00:00
|
|
|
title !byte x_e-x_b
|
2022-09-10 04:58:15 +00:00
|
|
|
x_b !text "DIG.DUG"
|
2021-10-27 00:11:02 +00:00
|
|
|
x_e
|
|
|
|
|
|
|
|
!if * > $3F0 {
|
|
|
|
!error "code is too large, ends at ", *
|
|
|
|
}
|