mirror of
https://github.com/a2-4am/4cade.git
synced 2024-12-22 09:30:04 +00:00
Thunder Bombs demo, fix Space Quarks (#417)
* Add files via upload * Add files via upload * Delete THUNDER.1
This commit is contained in:
parent
0cf8225f31
commit
d6f69d0926
Binary file not shown.
Binary file not shown.
Binary file not shown.
@ -147,8 +147,7 @@ STAR.BLAZER=Type(06),AuxType(0300),Access(C3)
|
|||||||
STARGATE=Type(06),AuxType(0200),Access(C3)
|
STARGATE=Type(06),AuxType(0200),Access(C3)
|
||||||
STELLAR.7=Type(06),AuxType(0300),Access(C3)
|
STELLAR.7=Type(06),AuxType(0300),Access(C3)
|
||||||
STELLAR.7.1=Type(F1),AuxType(0000),Access(C3)
|
STELLAR.7.1=Type(F1),AuxType(0000),Access(C3)
|
||||||
THUNDER.BOMBS=Type(06),AuxType(2000),Access(C3)
|
THUNDER.BOMBS=Type(06),AuxType(B000),Access(C3)
|
||||||
THUNDER.1=Type(F1),AuxType(0000),Access(C3)
|
|
||||||
TB=Type(06),AuxType(0300),Access(C3)
|
TB=Type(06),AuxType(0300),Access(C3)
|
||||||
TUNNEL.TERROR=Type(06),AuxType(BD00),Access(C3)
|
TUNNEL.TERROR=Type(06),AuxType(BD00),Access(C3)
|
||||||
WARP.DESTROYER=Type(06),AuxType(0320),Access(C3)
|
WARP.DESTROYER=Type(06),AuxType(0320),Access(C3)
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
;license:MIT
|
;license:MIT
|
||||||
;(c) 2021 by qkumba/Frank M.
|
;(c) 2021 by qkumba
|
||||||
|
|
||||||
!cpu 6502
|
!cpu 6502
|
||||||
!to "res/DEMO/SPACE.QUARKS",plain
|
!to "res/DEMO/SPACE.QUARKS",plain
|
||||||
@ -11,20 +11,10 @@
|
|||||||
+READ_RAM2_WRITE_RAM2
|
+READ_RAM2_WRITE_RAM2
|
||||||
jsr EnableAccelerator
|
jsr EnableAccelerator
|
||||||
+LOAD_FILE_AT space_quarks, $00
|
+LOAD_FILE_AT space_quarks, $00
|
||||||
|
|
||||||
lda #0
|
|
||||||
sta $40B4 ; (moved to $3F2) reset fix
|
|
||||||
sta $40C0 ; (moved to $3FE) IRQ fix
|
|
||||||
lda #1
|
|
||||||
sta $40B4+1
|
|
||||||
sta $40C0+1
|
|
||||||
lda #$A4
|
|
||||||
sta $40B4+2
|
|
||||||
|
|
||||||
lda #$4C
|
lda #$4C
|
||||||
sta $3EC9
|
sta $3EC9
|
||||||
jsr $3E65 ; decompress
|
jsr $3E65 ; decompress/set reset vector
|
||||||
|
+RESET_AND_IRQ_VECTOR $100
|
||||||
lda #$EA
|
lda #$EA
|
||||||
sta $1C38
|
sta $1C38
|
||||||
sta $1C39
|
sta $1C39
|
||||||
|
89
src/demo/thunder.bombs.a
Normal file
89
src/demo/thunder.bombs.a
Normal file
@ -0,0 +1,89 @@
|
|||||||
|
;license:MIT
|
||||||
|
;(c) 2021 by Frank M.
|
||||||
|
|
||||||
|
!cpu 6502
|
||||||
|
!to "res/DEMO/THUNDER.BOMBS",plain
|
||||||
|
*=$B000
|
||||||
|
|
||||||
|
!source "src/constants.a" ; no code in these
|
||||||
|
!source "src/macros.a"
|
||||||
|
|
||||||
|
+READ_RAM2_WRITE_RAM2
|
||||||
|
;+LOAD_FILE_KEEP_DIR
|
||||||
|
ldx #0 ; read to main memory
|
||||||
|
stx ldrhi
|
||||||
|
stx ldrlo
|
||||||
|
+LDADDR title
|
||||||
|
jsr iLoadFileDirect
|
||||||
|
+READ_ROM_NO_WRITE
|
||||||
|
|
||||||
|
ldx #16-1 ; we also need to copy the length byte
|
||||||
|
- lda newpath,x
|
||||||
|
sta $BFD0,x
|
||||||
|
dex
|
||||||
|
bpl -
|
||||||
|
|
||||||
|
lda #$60
|
||||||
|
sta $887F
|
||||||
|
lda #$4C
|
||||||
|
sta $8819
|
||||||
|
lda #<callback
|
||||||
|
sta $8819+1
|
||||||
|
lda #>callback
|
||||||
|
sta $8819+2
|
||||||
|
jsr $87F9 ; load/title
|
||||||
|
|
||||||
|
lda #$60
|
||||||
|
sta $7818
|
||||||
|
jsr $7800 ; unpack/setup
|
||||||
|
|
||||||
|
lda #0
|
||||||
|
sta $3F2 ; reset vector
|
||||||
|
|
||||||
|
lda #$4C
|
||||||
|
sta $789B
|
||||||
|
sta $78CB
|
||||||
|
sta $7A8C
|
||||||
|
sta $7837
|
||||||
|
lda #0
|
||||||
|
sta $789B+1
|
||||||
|
sta $78CB+1
|
||||||
|
sta $7A8C+1
|
||||||
|
sta $7837+1
|
||||||
|
lda #1
|
||||||
|
sta $789B+2
|
||||||
|
sta $78CB+2
|
||||||
|
sta $7A8C+2
|
||||||
|
sta $7837+2 ; set exits
|
||||||
|
|
||||||
|
lda $323
|
||||||
|
jmp $781B
|
||||||
|
|
||||||
|
callback bit $C000
|
||||||
|
ldx #$30
|
||||||
|
- bit $C055
|
||||||
|
lda #$0B
|
||||||
|
jsr $FCA8
|
||||||
|
bit $C054
|
||||||
|
lda #$0B
|
||||||
|
jsr $FCA8
|
||||||
|
bit $C000
|
||||||
|
bmi exit
|
||||||
|
dey
|
||||||
|
bne -
|
||||||
|
dex
|
||||||
|
bne -
|
||||||
|
jmp $8839
|
||||||
|
exit jmp $100
|
||||||
|
|
||||||
|
newpath
|
||||||
|
!byte 15
|
||||||
|
!text "X/THUNDER.BOMBS"
|
||||||
|
|
||||||
|
title !byte x_e-x_b
|
||||||
|
x_b !text "X/THUNDER.BOMBS/THUNDER.BOMBS"
|
||||||
|
x_e
|
||||||
|
|
||||||
|
!if * > $B100 {
|
||||||
|
!error "code is too large, ends at ", *
|
||||||
|
}
|
Loading…
Reference in New Issue
Block a user