From 577a2c152dca5a8e43323dea7109de35d611a90d Mon Sep 17 00:00:00 2001 From: Peter Ferrie Date: Sun, 22 May 2022 21:30:16 -0700 Subject: [PATCH] add Genetic Drift demo --- res/ATTRACT/GENETIC.DRIFT | 1 + res/DEMO/GENETIC.DRIFT | Bin 0 -> 118 bytes res/DEMO/_FileInformation.txt | 1 + src/demo/genetic.drift.a | 39 ++++++++++++++++++++++++++++++++++ src/index/artwork.idx.a | 2 +- src/index/attract.idx.a | 2 +- src/index/cache00.idx.a | 2 +- src/index/cache01.idx.a | 2 +- src/index/cache10.idx.a | 2 +- src/index/cache11.idx.a | 2 +- src/index/coverfade.idx.a | 2 +- src/index/credits.idx.a | 2 +- src/index/decrunch.idx.a | 2 +- src/index/dfx.idx.a | 2 +- src/index/dgr.fizzle.idx.a | 2 +- src/index/dgr.idx.a | 2 +- src/index/dhgr.idx.a | 2 +- src/index/dtitle.idx.a | 2 +- src/index/fx.idx.a | 2 +- src/index/gamehelp.idx.a | 2 +- src/index/gr.fizzle.idx.a | 2 +- src/index/gr.idx.a | 2 +- src/index/helptext.idx.a | 2 +- src/index/hgr0.idx.a | 2 +- src/index/hgr1.idx.a | 2 +- src/index/hgr2.idx.a | 2 +- src/index/hgr3.idx.a | 2 +- src/index/hgr4.idx.a | 2 +- src/index/hgr5.idx.a | 2 +- src/index/hgr6.idx.a | 2 +- src/index/joystick.idx.a | 2 +- src/index/miniattract0.idx.a | 2 +- src/index/miniattract1.idx.a | 2 +- src/index/prelaunch.idx.a | 2 +- src/index/search00.idx.a | 2 +- src/index/search01.idx.a | 2 +- src/index/search10.idx.a | 2 +- src/index/search11.idx.a | 2 +- src/index/sfx.idx.a | 2 +- src/index/slideshow.idx.a | 2 +- src/index/title.idx.a | 2 +- 41 files changed, 78 insertions(+), 37 deletions(-) create mode 100644 res/DEMO/GENETIC.DRIFT create mode 100644 src/demo/genetic.drift.a diff --git a/res/ATTRACT/GENETIC.DRIFT b/res/ATTRACT/GENETIC.DRIFT index 1efa2eab2..8488f40b7 100644 --- a/res/ATTRACT/GENETIC.DRIFT +++ b/res/ATTRACT/GENETIC.DRIFT @@ -5,5 +5,6 @@ GENETIC.DRIFT=C GENETIC.DRIFT=A +GENETIC.DRIFT=0 [eof] diff --git a/res/DEMO/GENETIC.DRIFT b/res/DEMO/GENETIC.DRIFT new file mode 100644 index 0000000000000000000000000000000000000000..acdc991ca8f409b3ed147d30b7e5afea39dda6e4 GIT binary patch literal 118 zcmdOCKA_WlKwrT8NJNcGI|-W^)?+?nb7OTp}@ca zq%B)k`t+XUUm4VUihm_@?`eL82`#-12Nbs42dYzG;P34?kn`uiY=pkMtDkF#r?Z|* Kkf&P+Dh~ic12F*r literal 0 HcmV?d00001 diff --git a/res/DEMO/_FileInformation.txt b/res/DEMO/_FileInformation.txt index a3808223e..58da37d2d 100644 --- a/res/DEMO/_FileInformation.txt +++ b/res/DEMO/_FileInformation.txt @@ -37,6 +37,7 @@ FIREBUG=Type(06),AuxType(0200),Access(C3) FLIP.OUT=Type(06),AuxType(0300),Access(C3) 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) GUMBALL=Type(06),AuxType(0210),Access(C3) HARD.HAT.MACK=Type(06),AuxType(0200),Access(C3) diff --git a/src/demo/genetic.drift.a b/src/demo/genetic.drift.a new file mode 100644 index 000000000..e5303168c --- /dev/null +++ b/src/demo/genetic.drift.a @@ -0,0 +1,39 @@ +;license:MIT +;(c) 2022 by qkumba + +!cpu 6502 +!to "res/DEMO/GENETIC.DRIFT",plain +*=$300 + + !source "src/constants.a" ; no code in these + !source "src/macros.a" + + +READ_RAM2_WRITE_RAM2 + jsr EnableAccelerator + +LOAD_FILE_AT genetic_drift, 0 + +READ_ROM_NO_WRITE + lda #$60 + sta $846 + jsr $800 ; decompress + lda #$60 + sta $8439 + lda #$4C + sta $FC9 + ldx #0 + stx $FCA + inx + stx $FCB + jsr $8490 ; decompress more + +DISABLE_ACCEL + jsr $F00 + jmp $100 + +genetic_drift + !byte genetic_drift_e-genetic_drift_b +genetic_drift_b + !text "X/GENETIC.DRIFT/GENETIC.DRIFT" +genetic_drift_e + +!if * > $3F0 { + !error "code is too large, ends at ", * +} diff --git a/src/index/artwork.idx.a b/src/index/artwork.idx.a index 2846bf286..d2c0e2a93 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 11465638 + !be24 11465655 !le16 4580 diff --git a/src/index/attract.idx.a b/src/index/attract.idx.a index 4b56f2e72..beca9d950 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 11416851 + !be24 11416868 !le16 5294 diff --git a/src/index/cache00.idx.a b/src/index/cache00.idx.a index 55a0ead0b..dc995a20e 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 11357213 + !be24 11357230 !le16 3654 diff --git a/src/index/cache01.idx.a b/src/index/cache01.idx.a index 352589b9b..a0e0273d9 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 11369994 + !be24 11370011 !le16 4064 diff --git a/src/index/cache10.idx.a b/src/index/cache10.idx.a index 1f698d43d..0a817a5ec 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 11386034 + !be24 11386051 !le16 5245 diff --git a/src/index/cache11.idx.a b/src/index/cache11.idx.a index 85d43d835..bded00443 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 11404548 + !be24 11404565 !le16 5870 diff --git a/src/index/coverfade.idx.a b/src/index/coverfade.idx.a index db33fdca9..8911852dc 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 11470218 + !be24 11470235 !le16 410 diff --git a/src/index/credits.idx.a b/src/index/credits.idx.a index c72a56d7b..e60dae39c 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 11470972 + !be24 11470989 !le16 448 diff --git a/src/index/decrunch.idx.a b/src/index/decrunch.idx.a index 27a990a9f..ca38dcd1a 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 11471420 + !be24 11471437 !le16 303 diff --git a/src/index/dfx.idx.a b/src/index/dfx.idx.a index 695c4f8ed..aa9d04db7 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 11424291 + !be24 11424308 !le16 1242 diff --git a/src/index/dgr.fizzle.idx.a b/src/index/dgr.fizzle.idx.a index 801a3fce8..34598a704 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 11470704 + !be24 11470721 !le16 67 diff --git a/src/index/dgr.idx.a b/src/index/dgr.idx.a index 8850c7ee4..5634be14e 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 11465579 + !be24 11465596 !le16 59 diff --git a/src/index/dhgr.idx.a b/src/index/dhgr.idx.a index d41d3be4c..0c6bc6cad 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 11464094 + !be24 11464111 !le16 1404 diff --git a/src/index/dtitle.idx.a b/src/index/dtitle.idx.a index 7f5416da0..b60fe9325 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 11449711 + !be24 11449728 !le16 521 diff --git a/src/index/fx.idx.a b/src/index/fx.idx.a index 8fb6fbf98..829f3fc9b 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 11422145 + !be24 11422162 !le16 2146 diff --git a/src/index/gamehelp.idx.a b/src/index/gamehelp.idx.a index 76f90aabd..98be51ade 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 11425891 + !be24 11425908 !le16 6433 diff --git a/src/index/gr.fizzle.idx.a b/src/index/gr.fizzle.idx.a index 1f1bae3e9..ddc8d96be 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 11470628 + !be24 11470645 !le16 76 diff --git a/src/index/gr.idx.a b/src/index/gr.idx.a index 3d71b4d9c..44c60f6bc 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 11465498 + !be24 11465515 !le16 81 diff --git a/src/index/helptext.idx.a b/src/index/helptext.idx.a index d86bd047a..dbff9b5f6 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 11470771 + !be24 11470788 !le16 201 diff --git a/src/index/hgr0.idx.a b/src/index/hgr0.idx.a index f460ea563..8375c2711 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 11450232 + !be24 11450249 !le16 4511 diff --git a/src/index/hgr1.idx.a b/src/index/hgr1.idx.a index 23b5548ab..1e732931a 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 11454743 + !be24 11454760 !le16 1591 diff --git a/src/index/hgr2.idx.a b/src/index/hgr2.idx.a index ca433d37d..071ad9677 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 11456334 + !be24 11456351 !le16 1053 diff --git a/src/index/hgr3.idx.a b/src/index/hgr3.idx.a index 3e39d3dfd..2cba27855 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 11457387 + !be24 11457404 !le16 3237 diff --git a/src/index/hgr4.idx.a b/src/index/hgr4.idx.a index 756edacc1..a4eea8538 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 11460624 + !be24 11460641 !le16 2877 diff --git a/src/index/hgr5.idx.a b/src/index/hgr5.idx.a index c2be2cc43..0ec19dde3 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 11463501 + !be24 11463518 !le16 479 diff --git a/src/index/hgr6.idx.a b/src/index/hgr6.idx.a index 4750bf370..dd08bf225 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 11463980 + !be24 11463997 !le16 114 diff --git a/src/index/joystick.idx.a b/src/index/joystick.idx.a index 752c1255a..dff7c3b34 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 11471723 + !be24 11471740 !le16 2370 diff --git a/src/index/miniattract0.idx.a b/src/index/miniattract0.idx.a index 6b63b996e..67644c00f 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 11437280 + !be24 11437297 !le16 3642 diff --git a/src/index/miniattract1.idx.a b/src/index/miniattract1.idx.a index d6e74a0e4..25a55e2e9 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 11440922 + !be24 11440939 !le16 2795 diff --git a/src/index/prelaunch.idx.a b/src/index/prelaunch.idx.a index 5fc4126c3..4efc09901 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 11410418 + !be24 11410435 !le16 6433 diff --git a/src/index/search00.idx.a b/src/index/search00.idx.a index 37011aa3d..95ed2e7f7 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 11348930 + !be24 11348947 !le16 8283 diff --git a/src/index/search01.idx.a b/src/index/search01.idx.a index a3dd423ee..94127b63b 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 11360867 + !be24 11360884 !le16 9127 diff --git a/src/index/search10.idx.a b/src/index/search10.idx.a index e9ac6d11f..b963a1208 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 11374058 + !be24 11374075 !le16 11976 diff --git a/src/index/search11.idx.a b/src/index/search11.idx.a index d33d40a76..0b964cced 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 11391279 + !be24 11391296 !le16 13269 diff --git a/src/index/sfx.idx.a b/src/index/sfx.idx.a index 91a411f45..3b555f66c 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 11425533 + !be24 11425550 !le16 358 diff --git a/src/index/slideshow.idx.a b/src/index/slideshow.idx.a index dd8b53bb0..1d2c40d4c 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 11432324 + !be24 11432341 !le16 4956 diff --git a/src/index/title.idx.a b/src/index/title.idx.a index 6c29be3ae..ec2ab0494 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 11443717 + !be24 11443734 !le16 5994