@echo --------------------------------------------------------------------------
@echo 	Keith's Z80 Dev Toolkit - Please see the Readme for instructions!
@echo --------------------------------------------------------------------------
@echo 				Start MSX with ROM V1.0
@echo. 			
@echo 		This tool loads the MSX emulator with a cartridge rom file
@echo.
@echo The data is loaded into 4000 and copied to 8000 so your program will
@echo 	    run the same on ROM or Disk, and allow self modified code
@echo --------------------------------------------------------------------------

copy ResMSX\header.rom RelMSX\cart.rom
Utils\BinaryTools.exe insert \BldMSX\boot.bin 0 -1 RelMSX\cart.rom 10 
Utils\BinaryTools.exe fill RelMSX\cart.rom 131071 1 0 
cd Emu\openmsx\
rem openmsx.14.exe -machine C-Bios_MSX2+  -cart ..\..\RelMSX\cart.rom -ext video9000

ver|find "Windows XP">nul
if %Errorlevel%==0 Goto OSXP

openmsx.exe -machine C-Bios_MSX2+  -cart ..\..\RelMSX\cart.rom -ext video9000
exit
:OSXP
openmsxXP.exe -machine C-Bios_MSX2+  -cart ..\..\RelMSX\cart.rom -ext video9000
exit
