4cade/src/demo/burgertime.a

71 lines
1.2 KiB
Plaintext
Raw Normal View History

;license:MIT
;(c) 2021 by Frank M.
!cpu 6502
!to "res/DEMO/BU",plain
*=$300
!source "src/constants.a" ; no code in these
!source "src/macros.a"
2022-09-11 03:39:10 +00:00
+ENABLE_ACCEL
+LOAD_XSINGLE title
lda #$60
sta $3ec9
sta $3f09
jsr $3e97 ; decompress
2022-09-11 03:39:10 +00:00
+DISABLE_ACCEL
lda #$4C
sta $653F
lda #$8D
sta $653F+1
lda #$65
sta $653F+2 ; skip joystick/keyboard selection
lda #$b1
sta $646b
jsr $6400
+ENABLE_ACCEL
jsr $811
lda #0
sta $A30A
lda #1
sta $A30F ; reset vector patch
lda #$4C
sta $9FD3
sta $9FCF
sta $A497 ; set exits
lda #0
sta $9FD3+1
sta $9FCF+1
sta $A497+1
sta $A15B
sta $A16A
sta $A17B
sta $A1D0 ; disable sound
lda #1
sta $9FD3+2
sta $9FCF+2
sta $A497+2
+DISABLE_ACCEL
jmp $a300
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 ", *
}