4cade/src/demo/dung.beetles.a
frankmilliron ac465e3633
Demo launchers (#414)
* Add files via upload

* Delete BURGERTIME.1

* Delete BURGERTIME.2

* Delete BURGERTIME.3

* Delete BURGERTIME.4

* Delete BURGERTIME.5

* Delete DUNG.BEETLES.1

* Delete VINDICATOR.1

* Add files via upload

* Add files via upload
2021-10-31 18:20:30 -04:00

67 lines
1.3 KiB
Plaintext

;license:MIT
;(c) 2021 by Frank M.
!cpu 6502
!to "res/DEMO/DUNG.BEETLES",plain
*=$300
!source "src/constants.a" ; no code in these
!source "src/macros.a"
+READ_RAM2_WRITE_RAM2
jsr EnableAccelerator
+LOAD_FILE_AT title, $00
lda #$60
sta $603A
jsr $6000 ; decompress
lda #1
sta $083E ; reset vector patch
lda #$4C
sta $847
lda #0
sta $848
lda #$96 ; patch $847 - JMP ($3F2)
sta $849 ; to JMP $9600
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
lda #$4C
sta $9B7D
sta $97D5
lda #0
sta $9B7D+1
sta $97D5+1
lda #1
sta $9B7D+2
sta $97D5+2 ; set exits
lda #$D0
sta $1C17
sta $12CE
sta $9B4D
sta $9B56 ; disable sound
+DISABLE_ACCEL
jmp $9600
patch !byte $A9,$01,$EA,$EA,$EA,$EA
title !byte x_e-x_b
x_b !text "X/DUNG.BEETLES/DUNG.BEETLES"
x_e
!if * > $3F0 {
!error "code is too large, ends at ", *
}