convert Spy Hunter demo, save 34kb

This commit is contained in:
Peter Ferrie 2022-07-03 22:32:30 -07:00
parent 97fdd77195
commit 38961a8e73
3 changed files with 58 additions and 1 deletions

Binary file not shown.

View File

@ -87,7 +87,7 @@ SPCARTOON.44=Type(06),AuxType(0200),Access(C3)
SPCARTOON.55=Type(06),AuxType(0200),Access(C3) SPCARTOON.55=Type(06),AuxType(0200),Access(C3)
SPCARTOON.66=Type(06),AuxType(0200),Access(C3) SPCARTOON.66=Type(06),AuxType(0200),Access(C3)
SPIDER.RAID=Type(06),AuxType(0300),Access(C3) SPIDER.RAID=Type(06),AuxType(0300),Access(C3)
SPY.HUNTER=Type(06),AuxType(0B87),Access(C3) SPY.HUNTER=Type(06),AuxType(0200),Access(C3)
SD=Type(06),AuxType(3FF1),Access(C3) SD=Type(06),AuxType(3FF1),Access(C3)
STAR.BLAZER=Type(06),AuxType(0300),Access(C3) STAR.BLAZER=Type(06),AuxType(0300),Access(C3)
STARGATE=Type(06),AuxType(0200),Access(C3) STARGATE=Type(06),AuxType(0200),Access(C3)

57
src/demo/spy.hunter.a Normal file
View File

@ -0,0 +1,57 @@
;license:MIT
;(c) 2022 by qkumba
!cpu 6502
!to "res/demo/SPY.HUNTER",plain
*=$200
!source "src/constants.a" ; no code in these
!source "src/macros.a"
+READ_RAM2_WRITE_RAM2
+LOAD_FILE_AT title, $00
+READ_ROM_NO_WRITE
lda #<(callback - 1)
sta $4013
lda #>(callback - 1)
sta $4010
jmp $4000
callback
+RESET_AND_IRQ_VECTOR $100
ldy #0
sty $0D8E
sty $E94
sty $EB3
sty $61C6
iny
sty $0D93
sty $E95
sty $EB4
sty $61C7
lda #$EA
sta $433
sta $434
sta $2C5E
sta $2C5F
lda #$2C
sta $7AB
lda #3
sta $7AA
sta $7CF
lda #$1A
sta $E78
lda #$12
sta $E80
lda #$60
sta $E92
lda #$4C
sta $E93
sta $EB2
sta $61C5
jmp $0451
title !byte x_e-x_b
x_b !text "X/SPY.HUNTER/SPY.HUNTER"
x_e