add Gremlins demo, fix prelaunch bug

This commit is contained in:
Peter Ferrie 2022-05-23 07:36:54 -07:00
parent 84f40dd6f2
commit 1b09690575
42 changed files with 93 additions and 45 deletions

View File

@ -5,5 +5,6 @@
GREMLINS=C
GREMLINS=A
GREMLINS=0
[eof]

BIN
res/DEMO/GREMLINS Normal file

Binary file not shown.

View File

@ -40,6 +40,7 @@ GALAXIAN=Type(06),AuxType(0300),Access(C3)
GAMMA.GOBLINS=Type(06),AuxType(B000),Access(C3)
GENETIC.DRIFT=Type(06),AuxType(0300),Access(C3)
THE.GOONIES=Type(06),AuxType(0300),Access(C3)
GREMLINS=Type(06),AuxType(BE00),Access(C3)
GUMBALL=Type(06),AuxType(0210),Access(C3)
HARD.HAT.MACK=Type(06),AuxType(0200),Access(C3)
HIGH.RISE=Type(06),AuxType(0300),Access(C3)

47
src/demo/gremlins.a Normal file
View File

@ -0,0 +1,47 @@
;license:MIT
;(c) 2022 by qkumba
!cpu 6502
!to "res/DEMO/GREMLINS",plain
*=$be00
!source "src/constants.a" ; no code in these
!source "src/macros.a"
+READ_RAM2_WRITE_RAM2
jsr EnableAccelerator
+LOAD_FILE_AT gremlins, 0
+READ_ROM_NO_WRITE
lda #$4C
sta $082D
sta $0863
lda #$2C
sta $839 ; no music
lda #0
sta $856 ; exit keycheck sooner
jsr $0800 ; decompress
+DISABLE_ACCEL
jsr $830 ; check key
ldx #0
stx $5219 ; exit keycheck sooner
lda #$4C
sta $51F2
sta $61E4
stx $51F3
stx $5506
stx $61E5
inx
stx $51F4
stx $5507
stx $61E6
jmp $4000
gremlins
!byte gremlins_e-gremlins_b
gremlins_b
!text "X/GREMLINS/GREMLINS"
gremlins_e
!if * > $BEFF {
!error "code is too large, ends at ", *
}

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

@ -1,5 +1,5 @@
;license:MIT
;(c) 2019 by 4am
;(c) 2019, 2022 by 4am, qkumba
!cpu 6502
!to "build/PRELAUNCH.INDEXED/GREMLINS",plain
@ -8,9 +8,13 @@
!source "src/prelaunch/common.a"
+ENABLE_ACCEL
lda #$60
sta $0866
lda #$4C
sta $082D
sta $0863
jsr $0800 ; decompress
+DISABLE_ACCEL
jsr $211 ; music
jsr $830 ; check key
+GET_MACHINE_STATUS
and #CHEATS_ENABLED
beq +
@ -22,11 +26,6 @@
sta $54B6 ; patch - don't decrease lives
sta $5162 ; patch - don't increase lives
+
ldx #0
stx $67AA
dex
stx $67A0
+DISABLE_ACCEL
jmp $4000
!if * > $1C0 {