diff --git a/res/GAMES.CONF b/res/GAMES.CONF index e1865d6b0..733afaa60 100755 --- a/res/GAMES.CONF +++ b/res/GAMES.CONF @@ -210,30 +210,30 @@ 0001,IP=It's the Pits 0001,JAWBREAKER=Jawbreaker 0001,JAWBREAKER.II=Jawbreaker II -0000,J.BIRD=J-Bird -0000,JELLYFISH=Jellyfish +0001,J.BIRD=J-Bird +0001,JELLYFISH=Jellyfish 0001,JOUST=Joust -0000,JUGGLER=Juggler -0000,JUMP.JET=Jump Jet +0001,JUGGLER=Juggler +0001,JUMP.JET=Jump Jet 0001,JUMPMAN=Jumpman 0004,JUNGLE.HUNT=Jungle Hunt -1000,KAMIKAZE=Kamikaze -0000,KARATEKA=Karateka +1001,KAMIKAZE=Kamikaze +0005,KARATEKA=Karateka 0001,KID.NIKI=Kid Niki 0001,KUNG.FU.MASTER=Kung Fu Master 0006,LABYRINTH=Labyrinth 0001,LADY.TUT=Lady Tut -0000,LA=Lamb Chops! +0001,LA=Lamb Chops! 0001,LANCASTER=Lancaster 1000,LASER.BOUNCE=Laser Bounce 0001,LAZER.SILK=Lazer Silk 0000,LEMMINGS=Lemmings -0000,LL=Lethal Labyrinth +0001,LL=Lethal Labyrinth 0000,LP=Little Computer People 0001,LC=Lock 'n' Chase 0006,LODE.RUNNER=Lode Runner -1000,LOST.TOMB=Lost Tomb -0000,LUNAR.LEEPERS=Lunar Leepers +1003,LOST.TOMB=Lost Tomb +0004,LUNAR.LEEPERS=Lunar Leepers 0000,M.I.R.V=M I R V 1000,MAD.BOMBER=Mad Bomber 0001,MAD.RAT=Mad Rat diff --git a/src/index/artwork.idx.a b/src/index/artwork.idx.a index 878d3161d..94e4fda49 100644 --- a/src/index/artwork.idx.a +++ b/src/index/artwork.idx.a @@ -4,5 +4,5 @@ ; This file is automatically generated ; !byte 0 - !be24 11418886 + !be24 11419910 !le16 4515 diff --git a/src/index/attract.idx.a b/src/index/attract.idx.a index f27f604eb..d90ee5708 100644 --- a/src/index/attract.idx.a +++ b/src/index/attract.idx.a @@ -4,5 +4,5 @@ ; This file is automatically generated ; !byte 0 - !be24 11370099 + !be24 11371123 !le16 5294 diff --git a/src/index/cache00.idx.a b/src/index/cache00.idx.a index a140ce12f..d5945fbab 100644 --- a/src/index/cache00.idx.a +++ b/src/index/cache00.idx.a @@ -4,5 +4,5 @@ ; This file is automatically generated ; !byte 0 - !be24 11310461 + !be24 11311485 !le16 3654 diff --git a/src/index/cache01.idx.a b/src/index/cache01.idx.a index b317353af..5d3ffffc6 100644 --- a/src/index/cache01.idx.a +++ b/src/index/cache01.idx.a @@ -4,5 +4,5 @@ ; This file is automatically generated ; !byte 0 - !be24 11323242 + !be24 11324266 !le16 4064 diff --git a/src/index/cache10.idx.a b/src/index/cache10.idx.a index 4c4890a44..dfbb0bf22 100644 --- a/src/index/cache10.idx.a +++ b/src/index/cache10.idx.a @@ -4,5 +4,5 @@ ; This file is automatically generated ; !byte 0 - !be24 11339282 + !be24 11340306 !le16 5245 diff --git a/src/index/cache11.idx.a b/src/index/cache11.idx.a index 03692eabe..078c896b6 100644 --- a/src/index/cache11.idx.a +++ b/src/index/cache11.idx.a @@ -4,5 +4,5 @@ ; This file is automatically generated ; !byte 0 - !be24 11357796 + !be24 11358820 !le16 5870 diff --git a/src/index/coverfade.idx.a b/src/index/coverfade.idx.a index b20d65105..7fd1c96a0 100644 --- a/src/index/coverfade.idx.a +++ b/src/index/coverfade.idx.a @@ -4,5 +4,5 @@ ; This file is automatically generated ; !byte 0 - !be24 11423401 + !be24 11424425 !le16 410 diff --git a/src/index/credits.idx.a b/src/index/credits.idx.a index 2791167f3..86e85dc2a 100644 --- a/src/index/credits.idx.a +++ b/src/index/credits.idx.a @@ -4,5 +4,5 @@ ; This file is automatically generated ; !byte 0 - !be24 11424155 + !be24 11425179 !le16 448 diff --git a/src/index/decrunch.idx.a b/src/index/decrunch.idx.a index e6934dc21..59b4605b7 100644 --- a/src/index/decrunch.idx.a +++ b/src/index/decrunch.idx.a @@ -4,5 +4,5 @@ ; This file is automatically generated ; !byte 0 - !be24 11424603 + !be24 11425627 !le16 303 diff --git a/src/index/dfx.idx.a b/src/index/dfx.idx.a index 5262f6e40..fded909b3 100644 --- a/src/index/dfx.idx.a +++ b/src/index/dfx.idx.a @@ -4,5 +4,5 @@ ; This file is automatically generated ; !byte 0 - !be24 11377539 + !be24 11378563 !le16 1242 diff --git a/src/index/dgr.fizzle.idx.a b/src/index/dgr.fizzle.idx.a index 81a560153..7f729c48e 100644 --- a/src/index/dgr.fizzle.idx.a +++ b/src/index/dgr.fizzle.idx.a @@ -4,5 +4,5 @@ ; This file is automatically generated ; !byte 0 - !be24 11423887 + !be24 11424911 !le16 67 diff --git a/src/index/dgr.idx.a b/src/index/dgr.idx.a index c0390418d..f83028577 100644 --- a/src/index/dgr.idx.a +++ b/src/index/dgr.idx.a @@ -4,5 +4,5 @@ ; This file is automatically generated ; !byte 0 - !be24 11418827 + !be24 11419851 !le16 59 diff --git a/src/index/dhgr.idx.a b/src/index/dhgr.idx.a index 9515609e9..be0f4a0ed 100644 --- a/src/index/dhgr.idx.a +++ b/src/index/dhgr.idx.a @@ -4,5 +4,5 @@ ; This file is automatically generated ; !byte 0 - !be24 11417342 + !be24 11418366 !le16 1404 diff --git a/src/index/dtitle.idx.a b/src/index/dtitle.idx.a index ccbe220ef..23f2301c6 100644 --- a/src/index/dtitle.idx.a +++ b/src/index/dtitle.idx.a @@ -4,5 +4,5 @@ ; This file is automatically generated ; !byte 0 - !be24 11402959 + !be24 11403983 !le16 521 diff --git a/src/index/fx.idx.a b/src/index/fx.idx.a index e043623fc..203444237 100644 --- a/src/index/fx.idx.a +++ b/src/index/fx.idx.a @@ -4,5 +4,5 @@ ; This file is automatically generated ; !byte 0 - !be24 11375393 + !be24 11376417 !le16 2146 diff --git a/src/index/gamehelp.idx.a b/src/index/gamehelp.idx.a index 00fdbb911..d0ec62e91 100644 --- a/src/index/gamehelp.idx.a +++ b/src/index/gamehelp.idx.a @@ -4,5 +4,5 @@ ; This file is automatically generated ; !byte 0 - !be24 11379139 + !be24 11380163 !le16 6433 diff --git a/src/index/gr.fizzle.idx.a b/src/index/gr.fizzle.idx.a index 65dd5a50e..ac1a87032 100644 --- a/src/index/gr.fizzle.idx.a +++ b/src/index/gr.fizzle.idx.a @@ -4,5 +4,5 @@ ; This file is automatically generated ; !byte 0 - !be24 11423811 + !be24 11424835 !le16 76 diff --git a/src/index/gr.idx.a b/src/index/gr.idx.a index f590031d5..06bf3c4f8 100644 --- a/src/index/gr.idx.a +++ b/src/index/gr.idx.a @@ -4,5 +4,5 @@ ; This file is automatically generated ; !byte 0 - !be24 11418746 + !be24 11419770 !le16 81 diff --git a/src/index/helptext.idx.a b/src/index/helptext.idx.a index 44f3f4777..f0bdffe0c 100644 --- a/src/index/helptext.idx.a +++ b/src/index/helptext.idx.a @@ -4,5 +4,5 @@ ; This file is automatically generated ; !byte 0 - !be24 11423954 + !be24 11424978 !le16 201 diff --git a/src/index/hgr0.idx.a b/src/index/hgr0.idx.a index ef241a67a..f48e8ba5d 100644 --- a/src/index/hgr0.idx.a +++ b/src/index/hgr0.idx.a @@ -4,5 +4,5 @@ ; This file is automatically generated ; !byte 0 - !be24 11403480 + !be24 11404504 !le16 4511 diff --git a/src/index/hgr1.idx.a b/src/index/hgr1.idx.a index 007bed607..9c0124f43 100644 --- a/src/index/hgr1.idx.a +++ b/src/index/hgr1.idx.a @@ -4,5 +4,5 @@ ; This file is automatically generated ; !byte 0 - !be24 11407991 + !be24 11409015 !le16 1591 diff --git a/src/index/hgr2.idx.a b/src/index/hgr2.idx.a index 49e9eb0d3..57582b2d8 100644 --- a/src/index/hgr2.idx.a +++ b/src/index/hgr2.idx.a @@ -4,5 +4,5 @@ ; This file is automatically generated ; !byte 0 - !be24 11409582 + !be24 11410606 !le16 1053 diff --git a/src/index/hgr3.idx.a b/src/index/hgr3.idx.a index 81ac77414..415dd4323 100644 --- a/src/index/hgr3.idx.a +++ b/src/index/hgr3.idx.a @@ -4,5 +4,5 @@ ; This file is automatically generated ; !byte 0 - !be24 11410635 + !be24 11411659 !le16 3237 diff --git a/src/index/hgr4.idx.a b/src/index/hgr4.idx.a index 13a89481f..7721ffb8c 100644 --- a/src/index/hgr4.idx.a +++ b/src/index/hgr4.idx.a @@ -4,5 +4,5 @@ ; This file is automatically generated ; !byte 0 - !be24 11413872 + !be24 11414896 !le16 2877 diff --git a/src/index/hgr5.idx.a b/src/index/hgr5.idx.a index d45b7ae3d..d259a30f8 100644 --- a/src/index/hgr5.idx.a +++ b/src/index/hgr5.idx.a @@ -4,5 +4,5 @@ ; This file is automatically generated ; !byte 0 - !be24 11416749 + !be24 11417773 !le16 479 diff --git a/src/index/hgr6.idx.a b/src/index/hgr6.idx.a index 4141b3161..e256ec655 100644 --- a/src/index/hgr6.idx.a +++ b/src/index/hgr6.idx.a @@ -4,5 +4,5 @@ ; This file is automatically generated ; !byte 0 - !be24 11417228 + !be24 11418252 !le16 114 diff --git a/src/index/joystick.idx.a b/src/index/joystick.idx.a index 07a85c715..7615fe744 100644 --- a/src/index/joystick.idx.a +++ b/src/index/joystick.idx.a @@ -4,5 +4,5 @@ ; This file is automatically generated ; !byte 0 - !be24 11424906 + !be24 11425930 !le16 2370 diff --git a/src/index/miniattract0.idx.a b/src/index/miniattract0.idx.a index b1028a4b9..c6f751af0 100644 --- a/src/index/miniattract0.idx.a +++ b/src/index/miniattract0.idx.a @@ -4,5 +4,5 @@ ; This file is automatically generated ; !byte 0 - !be24 11390528 + !be24 11391552 !le16 3642 diff --git a/src/index/miniattract1.idx.a b/src/index/miniattract1.idx.a index 3c7a94e96..4e74f72df 100644 --- a/src/index/miniattract1.idx.a +++ b/src/index/miniattract1.idx.a @@ -4,5 +4,5 @@ ; This file is automatically generated ; !byte 0 - !be24 11394170 + !be24 11395194 !le16 2795 diff --git a/src/index/prelaunch.idx.a b/src/index/prelaunch.idx.a index 7a228efb5..3f328eeb0 100644 --- a/src/index/prelaunch.idx.a +++ b/src/index/prelaunch.idx.a @@ -4,5 +4,5 @@ ; This file is automatically generated ; !byte 0 - !be24 11363666 + !be24 11364690 !le16 6433 diff --git a/src/index/res.cover.idx.a b/src/index/res.cover.idx.a index 023657121..ea45f6507 100644 --- a/src/index/res.cover.idx.a +++ b/src/index/res.cover.idx.a @@ -4,5 +4,5 @@ ; This file is automatically generated ; !byte 0 - !be24 3698176 + !be24 3699200 !le16 8192 diff --git a/src/index/res.help.idx.a b/src/index/res.help.idx.a index d0216bc74..6763921ad 100644 --- a/src/index/res.help.idx.a +++ b/src/index/res.help.idx.a @@ -4,5 +4,5 @@ ; This file is automatically generated ; !byte 0 - !be24 3714560 + !be24 3715584 !le16 8192 diff --git a/src/index/res.title.idx.a b/src/index/res.title.idx.a index 40501436f..f4affdeb2 100644 --- a/src/index/res.title.idx.a +++ b/src/index/res.title.idx.a @@ -4,5 +4,5 @@ ; This file is automatically generated ; !byte 0 - !be24 3706368 + !be24 3707392 !le16 8192 diff --git a/src/index/search00.idx.a b/src/index/search00.idx.a index b5af68dd7..8d08377cb 100644 --- a/src/index/search00.idx.a +++ b/src/index/search00.idx.a @@ -4,5 +4,5 @@ ; This file is automatically generated ; !byte 0 - !be24 11302178 + !be24 11303202 !le16 8283 diff --git a/src/index/search01.idx.a b/src/index/search01.idx.a index 2c41684a8..ae2fcea95 100644 --- a/src/index/search01.idx.a +++ b/src/index/search01.idx.a @@ -4,5 +4,5 @@ ; This file is automatically generated ; !byte 0 - !be24 11314115 + !be24 11315139 !le16 9127 diff --git a/src/index/search10.idx.a b/src/index/search10.idx.a index b06d2358d..457177d1d 100644 --- a/src/index/search10.idx.a +++ b/src/index/search10.idx.a @@ -4,5 +4,5 @@ ; This file is automatically generated ; !byte 0 - !be24 11327306 + !be24 11328330 !le16 11976 diff --git a/src/index/search11.idx.a b/src/index/search11.idx.a index d59d541e2..8888ed219 100644 --- a/src/index/search11.idx.a +++ b/src/index/search11.idx.a @@ -4,5 +4,5 @@ ; This file is automatically generated ; !byte 0 - !be24 11344527 + !be24 11345551 !le16 13269 diff --git a/src/index/sfx.idx.a b/src/index/sfx.idx.a index 54dbd1c51..51371960d 100644 --- a/src/index/sfx.idx.a +++ b/src/index/sfx.idx.a @@ -4,5 +4,5 @@ ; This file is automatically generated ; !byte 0 - !be24 11378781 + !be24 11379805 !le16 358 diff --git a/src/index/slideshow.idx.a b/src/index/slideshow.idx.a index c61ec3ebe..c32171499 100644 --- a/src/index/slideshow.idx.a +++ b/src/index/slideshow.idx.a @@ -4,5 +4,5 @@ ; This file is automatically generated ; !byte 0 - !be24 11385572 + !be24 11386596 !le16 4956 diff --git a/src/index/title.idx.a b/src/index/title.idx.a index e57bc5be9..953447ca1 100644 --- a/src/index/title.idx.a +++ b/src/index/title.idx.a @@ -4,5 +4,5 @@ ; This file is automatically generated ; !byte 0 - !be24 11396965 + !be24 11397989 !le16 5994 diff --git a/src/prelaunch/j.bird.a b/src/prelaunch/j.bird.a index ae8c150a0..af57a099d 100644 --- a/src/prelaunch/j.bird.a +++ b/src/prelaunch/j.bird.a @@ -22,7 +22,15 @@ jsr $9ED8 ; decompress - +DISABLE_ACCEL + +READ_RAM2_NO_WRITE + lda MachineStatus + and #CHEATS_ENABLED + beq + + lda #$ad + sta $7F1D ; patch - don't decrease lives ++ + jsr DisableAccelerator + +READ_ROM_NO_WRITE jmp $B263 diff --git a/src/prelaunch/jellyfish.a b/src/prelaunch/jellyfish.a index 3a0a4bf4c..17aac8f77 100644 --- a/src/prelaunch/jellyfish.a +++ b/src/prelaunch/jellyfish.a @@ -1,5 +1,5 @@ ;license:MIT -;(c) 2021 by Frank M. +;(c) 2021-2022 by Frank M., qkumba !cpu 6502 !to "build/PRELAUNCH.INDEXED/JELLYFISH",plain @@ -24,7 +24,15 @@ callback !pseudopc $50 { reset +NEW_RESET_VECTOR $2F0 - +DISABLE_ACCEL + +READ_RAM2_NO_WRITE + lda MachineStatus + and #CHEATS_ENABLED + beq + + lda #$a5 + sta $97BA ; patch - don't decrease lives ++ + jsr DisableAccelerator + +READ_ROM_NO_WRITE jmp $B800 reset_e } diff --git a/src/prelaunch/juggler.a b/src/prelaunch/juggler.a index ceca6a78c..4de9acbe2 100755 --- a/src/prelaunch/juggler.a +++ b/src/prelaunch/juggler.a @@ -1,5 +1,5 @@ ;license:MIT -;(c) 2019 by Frank M. +;(c) 2019, 2022 by Frank M., qkumba !cpu 6502 !to "build/PRELAUNCH.INDEXED/JUGGLER",plain @@ -7,6 +7,8 @@ !source "src/prelaunch/common.a" + +ENABLE_ACCEL + ldy #6 - lda $100-1,y sta $180-1,y ; move hook to $180 @@ -19,7 +21,21 @@ sta $7D1F jsr $3FF5 ; unpack - jmp $BA00 + lda #$60 + sta $BA21 + jsr $BA00 + + +READ_RAM2_NO_WRITE + lda MachineStatus + and #CHEATS_ENABLED + beq + + lda #$a5 + sta $9475 ; patch - don't decrease lives ++ + jsr DisableAccelerator + +READ_ROM_NO_WRITE + + jmp $6000 !if * > $1C0 { !error "code is too large, ends at ", * diff --git a/src/prelaunch/jump.jet.a b/src/prelaunch/jump.jet.a new file mode 100644 index 000000000..96fd32a23 --- /dev/null +++ b/src/prelaunch/jump.jet.a @@ -0,0 +1,33 @@ +;license:MIT +;(c) 2022 by qkumba + +!cpu 6502 +!to "build/PRELAUNCH.INDEXED/JUMP.JET",plain +*=$106 + + !source "src/prelaunch/common.a" + + +ENABLE_ACCEL + lda #callback + sta $7788 + jmp $3FF8 ; decompress + +callback + jsr $BE00 + +READ_RAM2_NO_WRITE + lda MachineStatus + and #CHEATS_ENABLED + beq + + lda #$ad + sta $131D ; patch - don't decrease lives ++ + jsr DisableAccelerator + +READ_ROM_NO_WRITE + + rts + +!if * > $1C0 { + !error "code is too large, ends at ", * +} diff --git a/src/prelaunch/kamikaze.a b/src/prelaunch/kamikaze.a new file mode 100644 index 000000000..5ee1f714a --- /dev/null +++ b/src/prelaunch/kamikaze.a @@ -0,0 +1,32 @@ +;license:MIT +;(c) 2022 by qkumba + +!cpu 6502 +!to "build/PRELAUNCH.INDEXED/KAMIKAZE",plain +*=$106 + + !source "src/prelaunch/common.a" + + +ENABLE_ACCEL + lda #$60 + sta $7B12 + jsr $739A ; decompress + + +READ_RAM2_NO_WRITE + lda MachineStatus + and #CHEATS_ENABLED + beq + + lda #$ad + sta $629D ; patch - don't decrease lives + sta $6342 ; patch - don't decrease lives + sta $67A6 ; patch - don't decrease lives + sta $6F90 ; patch - don't decrease lives ++ + jsr DisableAccelerator + +READ_ROM_NO_WRITE + + jmp $9400 + +!if * > $1C0 { + !error "code is too large, ends at ", * +} diff --git a/src/prelaunch/karateka.a b/src/prelaunch/karateka.a new file mode 100644 index 000000000..b326a5830 --- /dev/null +++ b/src/prelaunch/karateka.a @@ -0,0 +1,43 @@ +;license:MIT +;(c) 2022 by qkumba + +!cpu 6502 +!to "build/PRELAUNCH.INDEXED/KARATEKA",plain +*=$106 + + !source "src/prelaunch/common.a" + + +ENABLE_ACCEL + lda #$60 + sta $4013 + jsr $3FF6 ; decompress + ldx #callback_e-callback_b +- ldy callback_b-1,x + sty $60-1,x + dex + bne - + ldy #callback + sty $A51D + jmp $A495 + +callback_b !pseudopc $1460 { +callback + +READ_RAM2_NO_WRITE + lda MachineStatus + and #CHEATS_ENABLED + beq + + lda #$a5 + sta $BC9 ; patch - don't decrease lives ++ + jsr DisableAccelerator + +READ_ROM_NO_WRITE + + jmp $200 +} +callback_e + +!if * > $1C0 { + !error "code is too large, ends at ", * +} diff --git a/src/prelaunch/lamb.chops.a b/src/prelaunch/lamb.chops.a new file mode 100644 index 000000000..b9ce56150 --- /dev/null +++ b/src/prelaunch/lamb.chops.a @@ -0,0 +1,33 @@ +;license:MIT +;(c) 2022 by qkumba + +!cpu 6502 +!to "build/PRELAUNCH.INDEXED/LA",plain +*=$106 + + !source "src/prelaunch/common.a" + + +ENABLE_ACCEL + lda #$60 + sta $87C + sta $896 + jsr $800 ; decompress + +DISABLE_ACCEL + jsr $300 + +ENABLE_ACCEL + jsr $87F + +READ_RAM2_NO_WRITE + lda MachineStatus + and #CHEATS_ENABLED + beq + + dec $8C77 ; patch - don't decrease lives + dec $8DF7 ; patch - don't increase lives ++ + jsr DisableAccelerator + +READ_ROM_NO_WRITE + + jmp $8000 + +!if * > $1C0 { + !error "code is too large, ends at ", * +} diff --git a/src/prelaunch/lethal.labyrnth.a b/src/prelaunch/lethal.labyrnth.a index 732ff82b2..4514516a4 100644 --- a/src/prelaunch/lethal.labyrnth.a +++ b/src/prelaunch/lethal.labyrnth.a @@ -1,5 +1,5 @@ ;license:MIT -;(c) 2021 by qkumba +;(c) 2021-2022 by qkumba !cpu 6502 !to "build/PRELAUNCH.INDEXED/LL",plain @@ -11,21 +11,46 @@ lda #$60 sta $9EA jsr $800 ; find and load "DOS" - lda #callback + lda #>callback1 sta $B749 jmp $B700 -callback +callback1 ldx #$00 stx $9E52 inx stx $9E53 - +DISABLE_ACCEL + +READ_RAM2_NO_WRITE + lda MachineStatus + and #CHEATS_ENABLED + beq + + lda #callback2 + sta $BD08 ++ + jsr DisableAccelerator + +READ_ROM_NO_WRITE jmp $9D84 +callback2 + pla + pla + jsr $BD58 + jsr $BD09 + lda #6 + cmp $B7EC + bne + + cmp $B7ED + bne + + dec $9643 ; patch - don't decrease lives + dec $967B ; patch - don't increase lives ++ clc + rts + !if * > $1C0 { !error "code is too large, ends at ", * } diff --git a/src/prelaunch/lost.tomb.a b/src/prelaunch/lost.tomb.a new file mode 100644 index 000000000..66f8bb752 --- /dev/null +++ b/src/prelaunch/lost.tomb.a @@ -0,0 +1,30 @@ +;license:MIT +;(c) 2022 by qkumba + +!cpu 6502 +!to "build/PRELAUNCH.INDEXED/LOST.TOMB",plain +*=$106 + + !source "src/prelaunch/common.a" + + +ENABLE_ACCEL + lda #$60 + sta $82A + jsr $800 ; decompress + +READ_RAM2_NO_WRITE + lda MachineStatus + and #CHEATS_ENABLED + beq + + lda #$AD + sta $811C ; patch - don't increase ammo + sta $816D ; patch - don't decrease lives + sta $830B ; patch - don't increase time ++ + jsr DisableAccelerator + +READ_ROM_NO_WRITE + + jmp $84D + +!if * > $1C0 { + !error "code is too large, ends at ", * +} diff --git a/src/prelaunch/lunar.leepers.a b/src/prelaunch/lunar.leepers.a index d68f1e733..1a8f71c12 100644 --- a/src/prelaunch/lunar.leepers.a +++ b/src/prelaunch/lunar.leepers.a @@ -1,5 +1,5 @@ ;license:MIT -;(c) 2021 by Frank M. +;(c) 2021-2022 by Frank M., qkumba !cpu 6502 !to "build/PRELAUNCH.INDEXED/LUNAR.LEEPERS",plain @@ -15,9 +15,27 @@ +RESET_VECTOR $100 - +DISABLE_ACCEL + +READ_RAM2_NO_WRITE + lda MachineStatus + and #CHEATS_ENABLED + beq + + lda #callback + sta $33E ++ + jsr DisableAccelerator + +READ_ROM_NO_WRITE + jmp $6000 +callback + lda #$A5 + sta $E55 ; patch - don't decrease lives + sta $131A ; patch - don't increase lives + dec $7DA4 ; patch - don't decrease fuel + jmp $800 + !if * > $1C0 { !error "code is too large, ends at ", * }