convert Alien Ambush demo, save 15kb

This commit is contained in:
Peter Ferrie 2022-07-21 17:04:58 -07:00
parent b4e2814d85
commit 67390bd79d
3 changed files with 38 additions and 1 deletions

Binary file not shown.

View File

@ -2,7 +2,7 @@
AC=Type(06),AuxType(9B00),Access(C3) AC=Type(06),AuxType(9B00),Access(C3)
AGENT.U.S.A=Type(06),AuxType(0300),Access(C3) AGENT.U.S.A=Type(06),AuxType(0300),Access(C3)
ALIEN.AMBUSH=Type(06),AuxType(4000),Access(C3) ALIEN.AMBUSH=Type(06),AuxType(0300),Access(C3)
ALIEN.DOWNPOUR=Type(06),AuxType(0300),Access(C3) ALIEN.DOWNPOUR=Type(06),AuxType(0300),Access(C3)
ALIEN.MUNCHIES=Type(06),AuxType(0200),Access(C3) ALIEN.MUNCHIES=Type(06),AuxType(0200),Access(C3)
ALIEN.TYPHOON=Type(06),AuxType(0300),Access(C3) ALIEN.TYPHOON=Type(06),AuxType(0300),Access(C3)

37
src/demo/alien.ambush.a Normal file
View File

@ -0,0 +1,37 @@
;license:MIT
;(c) 2022 by qkumba
!cpu 6502
!to "res/DEMO/ALIEN.AMBUSH",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
+NEW_RESET_VECTOR $3E0 ; overwrites $101 at end of demo cycle
lda #$60
sta $81c
jsr $800 ; decompress
lda #$4C
sta $60CA
sta $6040
lda #$E0
sta $60CB
sta $6041
lda #3
sta $60CC
sta $6042
jsr DisableAccelerator
+READ_ROM_NO_WRITE
jmp $4000
title !byte x_e-x_b
x_b !text "X/ALIEN.AMBUSH/ALIEN.AMBUSH"
x_e
!if * > $3F0 {
!error "code is too large, ends at ", *
}