4cade/src/demo/jungle.hunt.a
frankmilliron 7eae249529
Gumball & Jungle Hunt demo launchers (#423)
* Add files via upload

* Delete GUMBALL.A

* Delete GUMBALL.B

* Delete GUMBALL.F

* Delete GUMBALL.I

* Delete GUMBALL.M

* Delete JUNGLE.HUNT.1

* Delete JUNGLE.HUNT.A

* Delete JUNGLE.HUNT.C

* Delete JUNGLE.HUNT.F

* Delete JUNGLE.HUNT.H

* Delete JUNGLE.HUNT.J

* Add files via upload
2021-11-05 10:49:55 -04:00

79 lines
1.5 KiB
Plaintext

;license:MIT
;(c) 2021 by Frank M.
!cpu 6502
!to "res/DEMO/JUNGLE.HUNT",plain
*=$210
!source "src/constants.a" ; no code in these
!source "src/macros.a"
+READ_RAM2_WRITE_RAM2
jsr EnableAccelerator
;+LOAD_FILE_KEEP_DIR
ldx #0 ; read to main memory
stx ldrhi
stx ldrlo
+LDADDR title
jsr iLoadFileDirect
ldx #14-1 ; we also need to copy the length byte
- lda newpath,x
sta $BFD0,x
dex
bpl -
lda #$60
sta $81E
jsr $800
lda #$60
sta $BD44
jsr $BD00
lda #1
sta $0A6C
lda #0
sta $0A67 ; reset vector patch
lda #$60
sta $1501 ; reduce wait times while not playing sounds
lda #$4C
sta $676C
sta $0BD6
sta $6553
sta $0C28
lda #0
sta $676C+1
sta $0BD6+1
sta $6553+1
sta $0C28+1
lda #1
sta $676C+2
sta $0BD6+2
sta $6553+2
sta $0C28+2 ; set exits
lda #$D0
sta $14A0
sta $14BA
sta $1425 ; disable sound
+DISABLE_ACCEL
jmp $A00
newpath
!byte 13
!text "X/JUNGLE.HUNT"
title !byte x_e-x_b
x_b !text "X/JUNGLE.HUNT/JUNGLE.HUNT"
x_e
!if * > $300 {
!error "code is too large, ends at ", *
}