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.3
rem     Written by: Ward Shrake
rem     Last updated: Dec 4, 2002
rem     
rem
ECHO off
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  (Two Bandai exclusives)
rem
rem
copy /b doraemon.bin+dr-slump.bin x27.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+pad8192.bin x28.bin
copy /b pad8192.bin+pad8192.bin x29.bin
copy /b pad8192.bin+pad8192.bin+pad8192.bin x30.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 x31.bin
copy /b message.bin+pad6144.bin+mothship.bin+pad6144.bin x32.bin
copy /b chartest.bin+pad6144.bin+astro.bin+pad4096.bin x33.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 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
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.)
