diff --git a/bin/addfile.js b/bin/addfile.js index 4316f7219..5c312d663 100644 --- a/bin/addfile.js +++ b/bin/addfile.js @@ -2,4 +2,4 @@ a=new ActiveXObject("scripting.filesystemobject") offset=a.getfile("BUILD\\TOTAL.DATA").size new ActiveXObject("wscript.shell").run('cmd /c copy /b /y BUILD\\TOTAL.DATA + ' + WScript.Arguments(0) + ' BUILD\\TOTAL.DATA', 0, 1) size=a.getfile(WScript.Arguments(0)).size -a.createtextfile(WScript.Arguments(1)).write(";\r\n; Index record for " + WScript.Arguments(0).replace(/\\/, "/") + "\r\n;\r\n; This file is automatically generated\r\n;\r\n !byte 0\r\n !be24 " + offset + "\r\n !le16 " + " ".substr(0, 8 - size.toString().length) + size + "\r\n") +a.createtextfile(WScript.Arguments(1)).write(";\r\n; Index record for " + WScript.Arguments(0).replace(/\\/, "/") + "\r\n;\r\n; This file is automatically generated\r\n;\r\n !byte 0\r\n !be24 " + " ".substr(0, 9 - offset.toString().length) + offset + "\r\n !le16 " + " ".substr(0, 8 - size.toString().length) + size + "\r\n") diff --git a/src/index/artwork.idx.a b/src/index/artwork.idx.a index 5e27d95f9..0cdbb14f8 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 15908388 + !be24 15908900 !le16 5130 diff --git a/src/index/attract.idx.a b/src/index/attract.idx.a index 571a5c1ff..a50431aff 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 15846644 + !be24 15847156 !le16 5732 diff --git a/src/index/cache00.idx.a b/src/index/cache00.idx.a index 4e3d020a1..60cb1bb77 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 15778170 + !be24 15778682 !le16 4229 diff --git a/src/index/cache01.idx.a b/src/index/cache01.idx.a index de8ab5c9f..9bbc1a903 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 15793011 + !be24 15793523 !le16 4700 diff --git a/src/index/cache10.idx.a b/src/index/cache10.idx.a index d96915299..87cb5077a 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 15811774 + !be24 15812286 !le16 5621 diff --git a/src/index/cache11.idx.a b/src/index/cache11.idx.a index c7920e709..6d6650ad0 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 15832849 + !be24 15833361 !le16 6213 diff --git a/src/index/coverfade.idx.a b/src/index/coverfade.idx.a index a998b5fdd..b7144eb39 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 15913518 + !be24 15914030 !le16 410 diff --git a/src/index/credits.idx.a b/src/index/credits.idx.a index 2a02fb28c..7217dbf11 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 15914272 + !be24 15914784 !le16 449 diff --git a/src/index/decrunch.idx.a b/src/index/decrunch.idx.a index e78792b89..d2d3660e8 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 15914721 + !be24 15915233 !le16 303 diff --git a/src/index/demo.idx.a b/src/index/demo.idx.a index 631837236..af28ed070 100644 --- a/src/index/demo.idx.a +++ b/src/index/demo.idx.a @@ -4,5 +4,5 @@ ; This file is automatically generated ; !byte 0 - !be24 15852376 + !be24 15852888 !le16 1652 diff --git a/src/index/dfx.idx.a b/src/index/dfx.idx.a index 4b7297cd0..5306f39da 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 15861016 + !be24 15861528 !le16 1640 diff --git a/src/index/dgr.fizzle.idx.a b/src/index/dgr.fizzle.idx.a index dea5913be..8902f6040 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 15914004 + !be24 15914516 !le16 67 diff --git a/src/index/dgr.idx.a b/src/index/dgr.idx.a index b7dd76e9d..3db8c63be 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 15908329 + !be24 15908841 !le16 59 diff --git a/src/index/dhgr.idx.a b/src/index/dhgr.idx.a index 8e4685fa3..1a340ea64 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 15906712 + !be24 15907224 !le16 1463 diff --git a/src/index/dtitle.idx.a b/src/index/dtitle.idx.a index 053dea9a8..0afb3d1b5 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 15891460 + !be24 15891972 !le16 575 diff --git a/src/index/fx.idx.a b/src/index/fx.idx.a index f7f137ae5..44c51a25b 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 15858376 + !be24 15858888 !le16 2640 diff --git a/src/index/fxcode.idx.a b/src/index/fxcode.idx.a index 5883bd70d..a7991b1d6 100644 --- a/src/index/fxcode.idx.a +++ b/src/index/fxcode.idx.a @@ -4,5 +4,5 @@ ; This file is automatically generated ; !byte 0 - !be24 15863014 + !be24 15863526 !le16 246 diff --git a/src/index/fxdata.idx.a b/src/index/fxdata.idx.a index abc14b0c3..caaaf9afe 100644 --- a/src/index/fxdata.idx.a +++ b/src/index/fxdata.idx.a @@ -4,5 +4,5 @@ ; This file is automatically generated ; !byte 0 - !be24 15863260 + !be24 15863772 !le16 538 diff --git a/src/index/gamehelp.idx.a b/src/index/gamehelp.idx.a index 141e8e1b1..815ca4fc1 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 15863798 + !be24 15864310 !le16 7582 diff --git a/src/index/gr.fizzle.idx.a b/src/index/gr.fizzle.idx.a index 2f52f130d..dbfc95728 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 15913928 + !be24 15914440 !le16 76 diff --git a/src/index/gr.idx.a b/src/index/gr.idx.a index 2996aeb03..b6ac080c4 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 15908175 + !be24 15908687 !le16 154 diff --git a/src/index/helptext.idx.a b/src/index/helptext.idx.a index 9276f143e..3c26aaa35 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 15914071 + !be24 15914583 !le16 201 diff --git a/src/index/hgr0.idx.a b/src/index/hgr0.idx.a index 25e86d709..186354d20 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 15892035 + !be24 15892547 !le16 4334 diff --git a/src/index/hgr1.idx.a b/src/index/hgr1.idx.a index 288cd822f..078294858 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 15896369 + !be24 15896881 !le16 1733 diff --git a/src/index/hgr2.idx.a b/src/index/hgr2.idx.a index 85df46569..0b9f50557 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 15898102 + !be24 15898614 !le16 1181 diff --git a/src/index/hgr3.idx.a b/src/index/hgr3.idx.a index 3b9c8927f..1a676e8fc 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 15899283 + !be24 15899795 !le16 3394 diff --git a/src/index/hgr4.idx.a b/src/index/hgr4.idx.a index 41235f36f..3457e31e6 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 15902677 + !be24 15903189 !le16 3429 diff --git a/src/index/hgr5.idx.a b/src/index/hgr5.idx.a index 37883a0de..51997544f 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 15906106 + !be24 15906618 !le16 479 diff --git a/src/index/hgr6.idx.a b/src/index/hgr6.idx.a index aeff7e87f..b6edf9971 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 15906585 + !be24 15907097 !le16 127 diff --git a/src/index/joystick.idx.a b/src/index/joystick.idx.a index 2ee2f8b46..484f858df 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 15915024 + !be24 15915536 !le16 2370 diff --git a/src/index/miniattract0.idx.a b/src/index/miniattract0.idx.a index 7734a25a3..ebb276872 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 15876785 + !be24 15877297 !le16 5101 diff --git a/src/index/miniattract1.idx.a b/src/index/miniattract1.idx.a index 514880e6d..a58b364fa 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 15881886 + !be24 15882398 !le16 2485 diff --git a/src/index/prelaunch.idx.a b/src/index/prelaunch.idx.a index 5a8a48508..f34e6306d 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 15839062 + !be24 15839574 !le16 7582 diff --git a/src/index/res.cover.idx.a b/src/index/res.cover.idx.a index adcb8bf29..d22e5d1a1 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 4267008 + !be24 4267520 !le16 8192 diff --git a/src/index/res.help.idx.a b/src/index/res.help.idx.a index d1c8ac48e..69892197e 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 4283392 + !be24 4283904 !le16 8192 diff --git a/src/index/res.title.idx.a b/src/index/res.title.idx.a index 47e9c1c09..4245205a9 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 4275200 + !be24 4275712 !le16 8192 diff --git a/src/index/search00.idx.a b/src/index/search00.idx.a index f3c5becbb..c30a4b31f 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 15768529 + !be24 15769041 !le16 9641 diff --git a/src/index/search01.idx.a b/src/index/search01.idx.a index 0992b3137..55e3d5c4e 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 15782399 + !be24 15782911 !le16 10612 diff --git a/src/index/search10.idx.a b/src/index/search10.idx.a index 78abd442d..be42575e2 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 15797711 + !be24 15798223 !le16 14063 diff --git a/src/index/search11.idx.a b/src/index/search11.idx.a index 442eb92b7..17d4e15d8 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 15817395 + !be24 15817907 !le16 15454 diff --git a/src/index/sfx.idx.a b/src/index/sfx.idx.a index ddebc0259..9df87d1f9 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 15862656 + !be24 15863168 !le16 358 diff --git a/src/index/slideshow.idx.a b/src/index/slideshow.idx.a index 3190f6933..7e625033e 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 15871380 + !be24 15871892 !le16 5405 diff --git a/src/index/title.idx.a b/src/index/title.idx.a index 762c51a30..e2e189540 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 15884371 + !be24 15884883 !le16 7089 diff --git a/src/index/xsingle.idx.a b/src/index/xsingle.idx.a index da2efb883..509a1fd3f 100644 --- a/src/index/xsingle.idx.a +++ b/src/index/xsingle.idx.a @@ -4,5 +4,5 @@ ; This file is automatically generated ; !byte 0 - !be24 15854028 + !be24 15854540 !le16 4348 diff --git a/src/prelaunch/galactic.attack.a b/src/prelaunch/galactic.attack.a new file mode 100644 index 000000000..4dd740666 --- /dev/null +++ b/src/prelaunch/galactic.attack.a @@ -0,0 +1,42 @@ +;license:MIT +;(c) 2024 by qkumba + +!cpu 6502 +!to "build/PRELAUNCH.INDEXED/GALACTIC.ATTACK",plain +*=$106 + + !source "src/macros.a" + + +ENABLE_ACCEL + lda #$4C + sta $D95 + lda #callback1 + sta $D97 + jmp $800 ; load Pascal + +callback1 + ldy #(callback2_e - callback2_b) - 1 +- lda callback2_b, y + sta callback2, y + dey + bpl - + lda #callback2 + sta $B75F + jmp $B69E ; init system + +callback2_b !pseudopc $BE40 { +callback2 + lda #2 + sta $BF2D ; fake floppy + +DISABLE_ACCEL + jmp $922D +} +callback2_e + +!if * > $1C0 { + !error "code is too large, ends at ", * +}