mirror of
https://github.com/a2-4am/4cade.git
synced 2024-11-22 21:32:39 +00:00
convert Alien Ambush demo, save 15kb
This commit is contained in:
parent
b4e2814d85
commit
67390bd79d
Binary file not shown.
@ -2,7 +2,7 @@
|
||||
|
||||
AC=Type(06),AuxType(9B00),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.MUNCHIES=Type(06),AuxType(0200),Access(C3)
|
||||
ALIEN.TYPHOON=Type(06),AuxType(0300),Access(C3)
|
||||
|
37
src/demo/alien.ambush.a
Normal file
37
src/demo/alien.ambush.a
Normal 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 ", *
|
||||
}
|
Loading…
Reference in New Issue
Block a user