4cade/src/demo/burgertime.a

68 lines
1.2 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/BU#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-11 03:39:10 +00:00
+LOAD_XSINGLE title
lda #$60
sta $3ec9
sta $3f09
jsr $3e97 ; decompress
2022-09-11 03:39:10 +00:00
+DISABLE_ACCEL
2022-09-27 17:20:04 +00:00
ldx #3-1
- lda patch2,x
sta $653F,x ; skip joystick/keyboard selection
dex
bpl -
lda #$b1
sta $646b
jsr $6400
+ENABLE_ACCEL
jsr $811
2022-09-27 17:20:04 +00:00
ldx #3-1
- lda patch,x
sta $9FD3,x
sta $9FCF,x
sta $A497,x ; set exits
dex
bpl -
inx
stx $A30A
stx $A15B
stx $A16A
stx $A17B
stx $A1D0 ; disable sound
inx
stx $A30F ; reset vector patch
+DISABLE_ACCEL
jmp $a300
2022-09-27 17:20:04 +00:00
patch !byte $4C,$00,$01
patch2 !byte $4C,$8D,$65
title !byte x_e-x_b
2022-09-11 03:39:10 +00:00
x_b !text "BU"
x_e
!if * > $3F0 {
!error "code is too large, ends at ", *
}