ECHO OFF
CLS
rem     Utility program used in the creation of "Arcadia 2001" multicarts.
rem     This batch program takes all of the individual ROM images available
rem     and makes one large file out of them, to use when burning EPROMs.
rem
rem     Version: 1.35
rem     Written by: Ward Shrake
rem     Last updated: Oct 20, 2003
rem     
rem
rem
rem     Notes: DIP switch setting / "binary image relative 8k bank positions"
rem
rem
rem                                             On or about: Nov. 19, 2001
rem     3dsoccer.bin    00      version 1.10    0000 00xx
rem     3d_bowl.bin     01      version 1.10    0000 01xx
rem     alieninv.bin    02      version 1.10    0000 10xx
rem     astro.bin       03      version 1.10    0000 11xx
rem     autorace.bin    04      version 1.10    0001 00xx
rem     baseball.bin    05      version 1.10    0001 01xx
rem     basket.bin      06      version 1.10    0001 10xx
rem     brainqui.bin    07      version 1.10    0001 11xx
rem     breakawa.bin    08      version 1.10    0010 00xx
rem     capture.bin     09      version 1.10    0010 01xx
rem     cattrax.bin     10      version 1.10    0010 10xx
rem     combat.bin      11      version 1.10    0010 11xx
rem     crazycli.bin    12      version 1.10    0011 00xx
rem     crazyg.bin      13      version 1.10    0011 01xx
rem     escape.bin      14      version 1.10    0011 10xx
rem     football.bin    15      version 1.10    0011 11xx
rem     funkyfis.bin    16      version 1.10    0100 00xx
rem     fussball.bin    17      version 1.10    0100 01xx
rem     golf.bin        18      version 1.10    0100 10xx
rem     grndslam.bin    19      version 1.10    0100 11xx
rem     hobo.bin        20      version 1.10    0101 00xx
rem     horserac.bin    21      version 1.10    0101 01xx
rem     jumpbug.bin     22      version 1.10    0101 10xx
rem     jungler.bin     23      version 1.10    0101 11xx
rem     missilew.bin    24      version 1.10    0110 00xx
rem     monaco.bin      25      version 1.10    0110 01xx
rem     oceanbat.bin    26      version 1.10    0110 10xx
rem     pleiades.bin    27      version 1.10    0110 11xx
rem     r2dtank.bin     28      version 1.10    0111 00xx
rem     redclash.bin    29      version 1.10    0111 01xx
rem     robotkil.bin    30      version 1.10    0111 10xx
rem     route16.bin     31      version 1.10    0111 11xx
rem     soccer.bin      32      version 1.10    1000 00xx
rem     spaceatt.bin    33      version 1.10    1000 01xx
rem     spacemis.bin    34      version 1.10    1000 10xx
rem     spacerai.bin    35      version 1.10    1000 11xx
rem     spcsquad.bin    36      version 1.10    1001 00xx
rem     spiders.bin     37      version 1.10    1001 01xx
rem     starches.bin    38      version 1.10    1001 10xx
rem     supergob.bin    39      version 1.10    1001 11xx
rem     tankgame.bin    40      version 1.10    1010 00xx
rem     tanksalo.bin    41      version 1.10    1010 01xx
rem     the-end.bin     42      version 1.10    1010 10xx
rem     turtles.bin     43      version 1.10    1010 11xx
rem     vulture.bin     44      version 1.10    1011 00xx
rem
rem                                             On or about: Feb. 25, 2002
rem     boxing.bin      45      version 1.20    1011 01xx
rem     nibble.bin      46      version 1.20    1011 10xx
rem     parashot.bin    47      version 1.20    1011 11xx
rem
rem                                             On or about: Apr. 12, 2002
rem     blackjac.bin    48      version 1.25    1100 00xx
rem     circus.bin      49      version 1.25    1100 01xx
rem
rem                                             On or about: Nov. 19, 2001
rem     doraemon.bin    50      version 1.30    1100 10xx
rem     dr-slump.bin    51      version 1.30    1100 11xx
rem
rem                                             On or about: Oct. 20, 2003
rem     gundam.bin      52      version 1.35    1101 00xx
rem     macross.bin     53      version 1.35    1101 01xx
rem     tetris.bin      54      version 1.35    1101 10xx
rem     jtron.bin       55      version 1.35    1101 11xx
rem     spacewar.bin    56      version 1.35    1110 00xx
rem     spacetvg.bin    57      version 1.35    1110 01xx
rem
rem
rem
rem     End of those notes, and the start of actual MS-DOS Batch program.
rem
rem
DEL x??.bin
DEL multi-em.bin
rem
rem
rem     I decided to break this into 16k chunks, per line, for no good 
rem     reason other than it makes the list below easier to read...
rem
rem
copy /b 3dsoccer.bin+3d-bowl.bin+pad4096.bin x01.bin
copy /b alieninv.bin+pad4096.bin+astro.bin+pad4096.bin x02.bin
copy /b autorace.bin+pad4096.bin+baseball.bin+pad4096.bin x03.bin
copy /b basket.bin+pad4096.bin+brainqui.bin+pad4096.bin x04.bin
rem
copy /b breakawa.bin+pad4096.bin+capture.bin+pad6144.bin x05.bin
copy /b cattrax.bin+pad4096.bin+combat.bin+pad4096.bin x06.bin
copy /b crazycli.bin+pad4096.bin+crazyg.bin+pad6144.bin x07.bin
copy /b escape.bin+pad4096.bin+football.bin+pad2048.bin x08.bin
rem
copy /b funkyfis.bin+fussball.bin x09.bin
copy /b golf.bin+pad2048.bin+grndslam.bin x10.bin
copy /b hobo.bin+horserac.bin+pad4096.bin x11.bin
copy /b jumpbug.bin+jungler.bin x12.bin
rem
copy /b missilew.bin+pad4096.bin+monaco.bin+pad4096.bin x13.bin
copy /b oceanbat.bin+pad4096.bin+pleiades.bin x14.bin
copy /b r2dtank.bin+pad4096.bin+redclash.bin+pad4096.bin x15.bin
copy /b robotkil.bin+pad4096.bin+route16.bin x16.bin
rem
copy /b soccer.bin+pad4096.bin+spaceatt.bin+pad4096.bin x17.bin
copy /b spacemis.bin+pad4096.bin+spacerai.bin+pad4096.bin x18.bin
copy /b spcsquad.bin+pad4096.bin+spiders.bin+pad4096.bin x19.bin
copy /b starches.bin+pad4096.bin+supergob.bin+pad4096.bin x20.bin
rem
copy /b tankgame.bin+pad4096.bin+tanksalo.bin+pad4096.bin x21.bin
copy /b the-end.bin+pad4096.bin+turtles.bin+pad4096.bin x22.bin
copy /b vulture.bin+pad2048.bin x23.bin
rem
rem
rem     End of programs as released in version 1.1 of the multicart.
rem     Start of programs added during version 1.2 of the software.
rem     (Note that each line does not necessarily equal 16k any more.)
rem
rem
copy /b boxing.bin+pad4096.bin+nibble.bin+pad4096.bin x24.bin
copy /b parashot.bin+pad4096.bin x25.bin
rem
rem
rem     End of programs as released in version 1.2 of the multicart.
rem     Start of programs added during version 1.25 of the software.
rem
rem
copy /b blackjac.bin+pad4096.bin+circus.bin+pad4096.bin x26.bin
rem
rem
rem     End of version 1.25, start of version 1.3
rem             (First 2 of 4 "Bandai exclusives" -- verified as good dumps.)
rem
rem
copy /b doraemon.bin+dr-slump.bin x27.bin
rem
rem
rem     End of version 1.3, start of version 1.35
rem             (Second 2 of 4 "Bandai exclusives" -- both need re-dumping.)
rem             (Also added Peter Trauner's homebrew game, and James Jacobs'.)
rem             (Also added two clones of existing games, for comparison.)
rem
rem
copy /b gundam.bin+macross.bin x28.bin
copy /b tetris.bin+pad4096.bin+jtron.bin+pad6144.bin x29.bin
copy /b spacewar.bin+pad6144.bin+spacetvg.bin+pad6144.bin x30.bin
rem
rem
rem     Start of remaining "empty slots," until more ROM images arrive.
rem     Any newly archived programs will be added after the ones above,
rem     so that the old DIP switch settings still work after each update.
rem
rem
copy /b pad8192.bin x31.bin
rem
rem
rem     Start of programs loaded into the high end of the cart. Mostly
rem     these are things that can be deleted later, if we find enough new
rem     ROM images that we need to recover all the EPROM space we can.
rem     But as long as we have "empty" space, why not show some homebrew
rem     demo programming exercises off, to encourage further efforts?
rem
rem     The duplicate copy of Astro Invaders is there only because Ward
rem     likes the game, and in the "all ones" position it serves as a tool
rem     to quickly see if all of the DIP switches on a cart work correctly.
rem     ("All zeros" is "3D Soccer," while "all ones" is "Astro Invader".)
rem
rem
copy /b counter.bin+pad6144.bin x32.bin
copy /b message.bin+pad6144.bin+mothship.bin+pad6144.bin x33.bin
copy /b chartest.bin+pad6144.bin+astro.bin+pad4096.bin x34.bin
rem
rem
rem     End of available space on the EPROM chip, inside the multicart.
rem
rem
rem     Taking all of the small-ish temp files, and assembling them into
rem     mid-sized files, then into one half-megabyte EPROM-ready file.
rem     (The temp files all get WIPE'd out with a second batch file, after
rem     I am certain that everything went well in creating the big file.)
rem
rem
copy /b x01.bin+x02.bin+x03.bin+x04.bin+x05.bin+x06.bin xaa.bin
copy /b x07.bin+x08.bin+x09.bin+x10.bin+x11.bin+x12.bin xbb.bin
copy /b x13.bin+x14.bin+x15.bin+x16.bin+x17.bin+x18.bin xcc.bin
copy /b x19.bin+x20.bin+x21.bin+x22.bin+x23.bin+x24.bin xdd.bin
copy /b x25.bin+x26.bin+x27.bin+x28.bin+x29.bin+x30.bin xee.bin
copy /b x31.bin+x32.bin+x33.bin+x34.bin xff.bin
rem
copy /b xaa.bin+xbb.bin+xcc.bin+xdd.bin+xee.bin+xff.bin multi-em.bin
rem
rem
rem     Copy the single EPROM-ready file to where my ROM burner software is.
rem
rem     copy multi-em.bin h:\emp10\multi-em.bin
rem
rem
rem     Show the newly-assembled files to me, to double check if the size
rem     of the completed file is what it should be; not longer or shorter.
rem
rem
CLS
DIR x??.* /p
PAUSE
CLS
DIR multi-em.bin
ECHO .
ECHO Correct file size: 524,288 bytes. 
ECHO .
PAUSE
DIR /on /w
rem     (Self-activating a WIPE.BAT program deletes the temporary files.)
