mirror of
https://github.com/a2-4am/4cade.git
synced 2024-11-27 08:50:01 +00:00
create Moon Patrol demo launcher (#399)
* Delete MOON.PATROL.1 * Add files via upload * Add files via upload
This commit is contained in:
parent
94265557d0
commit
024f9370a9
Binary file not shown.
Binary file not shown.
@ -108,8 +108,7 @@ LODE.RUNNER.1=Type(F1),AuxType(0000),Access(C3)
|
|||||||
LODE.RUNNER.M=Type(F1),AuxType(0000),Access(C3)
|
LODE.RUNNER.M=Type(F1),AuxType(0000),Access(C3)
|
||||||
LOST.TOMB=Type(06),AuxType(084D),Access(C3)
|
LOST.TOMB=Type(06),AuxType(084D),Access(C3)
|
||||||
MC=Type(06),AuxType(3FE7),Access(C3)
|
MC=Type(06),AuxType(3FE7),Access(C3)
|
||||||
MOON.PATROL=Type(06),AuxType(029F),Access(C3)
|
MOON.PATROL=Type(06),AuxType(0200),Access(C3)
|
||||||
MOON.PATROL.1=Type(F1),AuxType(0000),Access(C3)
|
|
||||||
NIGHT.STALKER=Type(06),AuxType(A000),Access(C3)
|
NIGHT.STALKER=Type(06),AuxType(A000),Access(C3)
|
||||||
NI=Type(06),AuxType(0300),Access(C3)
|
NI=Type(06),AuxType(0300),Access(C3)
|
||||||
NIGHTMARE.1=Type(F1),AuxType(0000),Access(C3)
|
NIGHTMARE.1=Type(F1),AuxType(0000),Access(C3)
|
||||||
|
@ -28,12 +28,13 @@ callback
|
|||||||
sta $7D1D+1
|
sta $7D1D+1
|
||||||
lda #1
|
lda #1
|
||||||
sta $7AE1+2
|
sta $7AE1+2
|
||||||
sta $7D1D+2
|
sta $7D1D+2 ; set exits
|
||||||
|
|
||||||
lda #$D0
|
lda #$D0
|
||||||
sta $7E11
|
sta $7E11
|
||||||
sta $7E38
|
sta $7E38
|
||||||
sta $7E43
|
sta $7E43
|
||||||
sta $7EA0
|
sta $7EA0 ; disable sound
|
||||||
|
|
||||||
+READ_RAM2_WRITE_RAM2
|
+READ_RAM2_WRITE_RAM2
|
||||||
jsr DisableAccelerator
|
jsr DisableAccelerator
|
||||||
|
63
src/demo/moon.patrol.a
Normal file
63
src/demo/moon.patrol.a
Normal file
@ -0,0 +1,63 @@
|
|||||||
|
;license:MIT
|
||||||
|
;(c) 2021 by Frank M.
|
||||||
|
|
||||||
|
!cpu 6502
|
||||||
|
!to "res/DEMO/MOON.PATROL",plain
|
||||||
|
*=$200
|
||||||
|
|
||||||
|
!source "src/constants.a" ; no code in these
|
||||||
|
!source "src/macros.a"
|
||||||
|
|
||||||
|
+READ_RAM2_WRITE_RAM2
|
||||||
|
jsr EnableAccelerator
|
||||||
|
+LOAD_FILE_AT moon_patrol, $800
|
||||||
|
+READ_ROM_NO_WRITE
|
||||||
|
|
||||||
|
lda #$60
|
||||||
|
sta $49DD
|
||||||
|
jsr $800
|
||||||
|
|
||||||
|
lda #$4C
|
||||||
|
sta $2A95
|
||||||
|
sta $2A7E
|
||||||
|
sta $0C31
|
||||||
|
sta $2E80
|
||||||
|
lda #0
|
||||||
|
sta $2A95+1
|
||||||
|
sta $2A7E+1
|
||||||
|
sta $0C31+1
|
||||||
|
sta $2E80+1
|
||||||
|
lda #1
|
||||||
|
sta $2A95+2
|
||||||
|
sta $2A7E+2
|
||||||
|
sta $0C31+2
|
||||||
|
sta $2E80+2 ; exit on keypress/end of demo
|
||||||
|
|
||||||
|
lda #$A2
|
||||||
|
sta $0996
|
||||||
|
lda #$FF
|
||||||
|
sta $0996+1
|
||||||
|
lda #$9A
|
||||||
|
sta $0996+2 ; prevent stack pointer from overwriting $100
|
||||||
|
|
||||||
|
ldx #26-1
|
||||||
|
- lda patch, x
|
||||||
|
sta $2726, x
|
||||||
|
dex
|
||||||
|
bpl - ; exit on keypress during title screen
|
||||||
|
|
||||||
|
+READ_RAM2_WRITE_RAM2
|
||||||
|
jsr DisableAccelerator
|
||||||
|
+READ_ROM_NO_WRITE
|
||||||
|
|
||||||
|
jmp $919
|
||||||
|
|
||||||
|
moon_patrol
|
||||||
|
!byte 25
|
||||||
|
!text "X/MOON.PATROL/MOON.PATROL"
|
||||||
|
|
||||||
|
patch !byte $20,$B8,$0A,$2C,$10,$C0,$A2,$41,$A9,$FF,$20,$A8,$FC,$AD,$00,$C0,$10,$05,$4C,$00,$01,$EA,$EA,$CA,$D0,$EE
|
||||||
|
|
||||||
|
!if * > $3F0 {
|
||||||
|
!error "code is too large, ends at ", *
|
||||||
|
}
|
Loading…
Reference in New Issue
Block a user