add Kamikaze demo

This commit is contained in:
Peter Ferrie 2022-05-23 07:50:28 -07:00
parent 1b09690575
commit 9d636b7d90
42 changed files with 93 additions and 39 deletions

View File

@ -4,5 +4,6 @@
#
KAMIKAZE=A
KAMIKAZE=0
[eof]

BIN
res/DEMO/KAMIKAZE Normal file

Binary file not shown.

View File

@ -45,6 +45,7 @@ GUMBALL=Type(06),AuxType(0210),Access(C3)
HARD.HAT.MACK=Type(06),AuxType(0200),Access(C3)
HIGH.RISE=Type(06),AuxType(0300),Access(C3)
JUNGLE.HUNT=Type(06),AuxType(0210),Access(C3)
KAMIKAZE=Type(06),AuxType(0300),Access(C3)
KARATEKA=Type(06),AuxType(0300),Access(C3)
KARATEKA.1=Type(F1),AuxType(0000),Access(C3)
LABYRINTH=Type(06),AuxType(0310),Access(C3)

46
src/demo/kamikaze.a Normal file
View File

@ -0,0 +1,46 @@
;license:MIT
;(c) 2022 by qkumba
!cpu 6502
!to "res/DEMO/KAMIKAZE",plain
*=$300
!source "src/constants.a" ; no code in these
!source "src/macros.a"
+READ_RAM2_WRITE_RAM2
jsr EnableAccelerator
+LOAD_FILE_AT kamikaze, $739A
+READ_ROM_NO_WRITE
lda #$60
sta $7B12
jsr $739A ; decompress
lda #$D0
sta $69AF ; no sound
sta $6A33 ; no sound
sta $6A4E ; no sound
sta $6A56 ; no sound
sta $70A8 ; no sound
lda #$4C
sta $6158
sta $6173
ldx #0
stx $61C1
inx
stx $615A
stx $6175
stx $61C2
+DISABLE_ACCEL
jmp $9400
kamikaze
!byte kamikaze_e-kamikaze_b
kamikaze_b
!text "X/KAMIKAZE/KAMIKAZE"
kamikaze_e
!if * > $3F0 {
!error "code is too large, ends at ", *
}

View File

@ -4,5 +4,5 @@
; This file is automatically generated
;
!byte 0
!be24 11465700
!be24 11465712
!le16 4580

View File

@ -4,5 +4,5 @@
; This file is automatically generated
;
!byte 0
!be24 11416888
!be24 11416900
!le16 5319

View File

@ -4,5 +4,5 @@
; This file is automatically generated
;
!byte 0
!be24 11357250
!be24 11357262
!le16 3654

View File

@ -4,5 +4,5 @@
; This file is automatically generated
;
!byte 0
!be24 11370031
!be24 11370043
!le16 4064

View File

@ -4,5 +4,5 @@
; This file is automatically generated
;
!byte 0
!be24 11386071
!be24 11386083
!le16 5245

View File

@ -4,5 +4,5 @@
; This file is automatically generated
;
!byte 0
!be24 11404585
!be24 11404597
!le16 5870

View File

@ -4,5 +4,5 @@
; This file is automatically generated
;
!byte 0
!be24 11470280
!be24 11470292
!le16 410

View File

@ -4,5 +4,5 @@
; This file is automatically generated
;
!byte 0
!be24 11471034
!be24 11471046
!le16 448

View File

@ -4,5 +4,5 @@
; This file is automatically generated
;
!byte 0
!be24 11471482
!be24 11471494
!le16 303

View File

@ -4,5 +4,5 @@
; This file is automatically generated
;
!byte 0
!be24 11424353
!be24 11424365
!le16 1242

View File

@ -4,5 +4,5 @@
; This file is automatically generated
;
!byte 0
!be24 11470766
!be24 11470778
!le16 67

View File

@ -4,5 +4,5 @@
; This file is automatically generated
;
!byte 0
!be24 11465641
!be24 11465653
!le16 59

View File

@ -4,5 +4,5 @@
; This file is automatically generated
;
!byte 0
!be24 11464156
!be24 11464168
!le16 1404

View File

@ -4,5 +4,5 @@
; This file is automatically generated
;
!byte 0
!be24 11449773
!be24 11449785
!le16 521

View File

@ -4,5 +4,5 @@
; This file is automatically generated
;
!byte 0
!be24 11422207
!be24 11422219
!le16 2146

View File

@ -4,5 +4,5 @@
; This file is automatically generated
;
!byte 0
!be24 11425953
!be24 11425965
!le16 6433

View File

@ -4,5 +4,5 @@
; This file is automatically generated
;
!byte 0
!be24 11470690
!be24 11470702
!le16 76

View File

@ -4,5 +4,5 @@
; This file is automatically generated
;
!byte 0
!be24 11465560
!be24 11465572
!le16 81

View File

@ -4,5 +4,5 @@
; This file is automatically generated
;
!byte 0
!be24 11470833
!be24 11470845
!le16 201

View File

@ -4,5 +4,5 @@
; This file is automatically generated
;
!byte 0
!be24 11450294
!be24 11450306
!le16 4511

View File

@ -4,5 +4,5 @@
; This file is automatically generated
;
!byte 0
!be24 11454805
!be24 11454817
!le16 1591

View File

@ -4,5 +4,5 @@
; This file is automatically generated
;
!byte 0
!be24 11456396
!be24 11456408
!le16 1053

View File

@ -4,5 +4,5 @@
; This file is automatically generated
;
!byte 0
!be24 11457449
!be24 11457461
!le16 3237

View File

@ -4,5 +4,5 @@
; This file is automatically generated
;
!byte 0
!be24 11460686
!be24 11460698
!le16 2877

View File

@ -4,5 +4,5 @@
; This file is automatically generated
;
!byte 0
!be24 11463563
!be24 11463575
!le16 479

View File

@ -4,5 +4,5 @@
; This file is automatically generated
;
!byte 0
!be24 11464042
!be24 11464054
!le16 114

View File

@ -4,5 +4,5 @@
; This file is automatically generated
;
!byte 0
!be24 11471785
!be24 11471797
!le16 2370

View File

@ -4,5 +4,5 @@
; This file is automatically generated
;
!byte 0
!be24 11437342
!be24 11437354
!le16 3642

View File

@ -4,5 +4,5 @@
; This file is automatically generated
;
!byte 0
!be24 11440984
!be24 11440996
!le16 2795

View File

@ -4,5 +4,5 @@
; This file is automatically generated
;
!byte 0
!be24 11410455
!be24 11410467
!le16 6433

View File

@ -4,5 +4,5 @@
; This file is automatically generated
;
!byte 0
!be24 11348967
!be24 11348979
!le16 8283

View File

@ -4,5 +4,5 @@
; This file is automatically generated
;
!byte 0
!be24 11360904
!be24 11360916
!le16 9127

View File

@ -4,5 +4,5 @@
; This file is automatically generated
;
!byte 0
!be24 11374095
!be24 11374107
!le16 11976

View File

@ -4,5 +4,5 @@
; This file is automatically generated
;
!byte 0
!be24 11391316
!be24 11391328
!le16 13269

View File

@ -4,5 +4,5 @@
; This file is automatically generated
;
!byte 0
!be24 11425595
!be24 11425607
!le16 358

View File

@ -4,5 +4,5 @@
; This file is automatically generated
;
!byte 0
!be24 11432386
!be24 11432398
!le16 4956

View File

@ -4,5 +4,5 @@
; This file is automatically generated
;
!byte 0
!be24 11443779
!be24 11443791
!le16 5994

View File

@ -454,19 +454,25 @@
; load an external file by pathname
; LC RAM 2 MUST BE BANKED IN
; LOW BYTE OF .addr MUST BE $00
; set .addr to $0000 to load anywhere in main
; set .addr to $0000 to load to any aligned addres in main
; LOW BYTE OF .addr MUST BE $00 IN THAT CASE
!macro LOAD_FILE_AT .filepath, .addr {
!if .addr > 0 {
lda #>.addr
sta ldrhi
}
!if <.addr > 0 {
lda #<.addr
sta ldrlo
}
lda iCurBlockLo
pha
lda iCurBlockHi
pha
ldx #0 ; read to main memory
!if <.addr = 0 {
stx ldrlo
}
+LDADDR .filepath
jsr iLoadFileDirect
pla